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.02943/0.02943, allocations: 5.399 MB / 20.9 MB, free: 1.348 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.007441/0.007441, allocations: 101.2 kB / 22.88 MB, free: 0.8125 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.001147/0.001147, allocations: 191 kB / 25 MB, free: 288 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 222.9 MB / 249.9 MB, free: 8.508 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009606/0.009607, allocations: 2.313 MB / 303.5 MB, free: 6.555 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 99.84 kB / 367.2 MB, free: 6.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1805, allocations: 51.2 MB / 418.4 MB, free: 26.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.006182/0.1867, allocations: 6.769 MB / 425.1 MB, free: 19.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004228/0.1909, allocations: 3.135 MB / 428.3 MB, free: 16.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006818/0.1917, allocations: 20 kB / 428.3 MB, free: 16.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002092/0.1938, allocations: 1.088 MB / 429.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00152/0.1953, allocations: 0.8494 MB / 430.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.1966, allocations: 0.5327 MB / 430.8 MB, free: 14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008612/0.1974, allocations: 1.371 MB / 432.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009895/0.1984, allocations: 1.028 MB / 433.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000396/0.1988, allocations: 0.5682 MB / 433.7 MB, free: 11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005544/0.1994, allocations: 0.7121 MB / 434.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.1996, allocations: 140 kB / 434.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005709/0.2001, allocations: 435.7 kB / 435 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.2003, allocations: 291 kB / 435.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003795/0.2007, allocations: 0.6337 MB / 435.9 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001117/0.2018, allocations: 1.725 MB / 437.6 MB, free: 7.066 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2018, allocations: 0 / 437.6 MB, free: 7.066 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2018, allocations: 0 / 437.6 MB, free: 7.066 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.2018, allocations: 4 kB / 437.6 MB, free: 7.062 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.003455/0.2053, allocations: 1.767 MB / 439.4 MB, free: 5.223 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.2053, allocations: 8.031 kB / 439.4 MB, free: 5.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002011/0.2074, allocations: 371.2 kB / 439.8 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001327/0.2087, allocations: 0.7562 MB / 440.5 MB, free: 4.051 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.907e-05/0.2088, allocations: 82 kB / 440.6 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.2089, allocations: 111.9 kB / 440.7 MB, free: 3.859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.2105, allocations: 1.176 MB / 441.9 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.2106, allocations: 0 / 441.9 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.562e-05/0.2107, allocations: 44 kB / 442 MB, free: 2.582 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.2107, allocations: 28 kB / 442 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001824/0.2125, allocations: 1.038 MB / 443 MB, free: 1.516 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005634/0.2182, allocations: 4.407 MB / 447.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002845/0.221, allocations: 1.768 MB / 449.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007654/0.2218, allocations: 373.2 kB / 449.6 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001624/0.222, allocations: 174.7 kB / 449.7 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009876/0.223, allocations: 0.5514 MB / 450.3 MB, free: 9.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.244e-06/0.223, allocations: 0 / 450.3 MB, free: 9.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006046/0.2291, allocations: 1.705 MB / 452 MB, free: 8.012 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/0.2292, allocations: 281.7 kB / 452.3 MB, free: 7.676 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006272/0.2298, allocations: 0.5536 MB / 452.8 MB, free: 7.113 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.2299, allocations: 45.7 kB / 452.9 MB, free: 7.062 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003178/0.2302, allocations: 486.7 kB / 453.3 MB, free: 6.578 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/0.2304, allocations: 256.4 kB / 453.6 MB, free: 6.324 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003049/0.2307, allocations: 214.7 kB / 453.8 MB, free: 6.105 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2309, allocations: 382.8 kB / 454.2 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007501/0.2317, allocations: 330.4 kB / 454.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009069/0.2326, allocations: 0.5643 MB / 455.1 MB, free: 4.742 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.01781/0.2504, allocations: 3.634 MB / 458.7 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.236e-05/0.2504, allocations: 4 kB / 458.7 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00278/0.2532, allocations: 1.209 MB / 459.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.763e-05/0.2533, allocations: 99.75 kB / 460 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.2534, allocations: 8 kB / 460 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006297/0.254, allocations: 84.72 kB / 460.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001573/0.2556, allocations: 255.8 kB / 460.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001997/0.2576, allocations: 1.578 MB / 461.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/0.2589, allocations: 111 kB / 462 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.259, allocations: 59.95 kB / 462.1 MB, free: 13.35 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.0006977/0.2597, allocations: 373.3 kB / 462.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002235/0.26, allocations: 79.06 kB / 462.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003542/0.2635, allocations: 1.264 MB / 463.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.2636, allocations: 8 kB / 463.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2636, allocations: 4 kB / 463.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.2636, allocations: 7.984 kB / 463.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008669/0.2723, allocations: 2.543 MB / 466.4 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.407e-06/0.2723, allocations: 3.938 kB / 466.4 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006427/0.273, allocations: 139.9 kB / 466.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008041/0.2738, allocations: 326.2 kB / 466.8 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.857e-05/0.2739, allocations: 35.97 kB / 466.8 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001647/0.2755, allocations: 0.8857 MB / 467.7 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.2755, allocations: 8.016 kB / 467.7 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00805/0.2836, allocations: 1.923 MB / 469.7 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006053/0.2842, allocations: 239.8 kB / 469.9 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002764/0.2845, allocations: 24 kB / 469.9 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009873/0.2855, allocations: 51.97 kB / 470 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.2858, allocations: 64.56 kB / 470 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.57e-05/0.2859, allocations: 31.97 kB / 470.1 MB, free: 5.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006965/0.2866, allocations: 390.8 kB / 470.4 MB, free: 4.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2866, allocations: 0 / 470.4 MB, free: 4.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001507/0.2881, allocations: 351 kB / 470.8 MB, free: 4.383 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.001018/0.2891, allocations: 363.1 kB / 471.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003923/0.2931, allocations: 1.185 MB / 472.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.2931, allocations: 0 / 472.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.2946, allocations: 0.6589 MB / 473 MB, free: 2.156 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001348/0.296, allocations: 150.1 kB / 473.1 MB, free: 2.012 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004594/0.3006, allocations: 1.79 MB / 474.9 MB, free: 196 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007452/0.3014, allocations: 1.018 MB / 475.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006924/0.3021, allocations: 134.3 kB / 476.1 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002359/0.3023, allocations: 91.38 kB / 476.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3023, allocations: 0 / 476.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of Templates: time 0.02215/0.3245, allocations: 12.8 MB / 489 MB, free: 2.195 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)