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.02851/0.02851, allocations: 5.393 MB / 21.7 MB, free: 1.328 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.00117/0.00117, allocations: 104.6 kB / 23.7 MB, free: 0.9492 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.001269/0.001269, allocations: 186.3 kB / 25.82 MB, free: 4.602 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.297/1.297, allocations: 222.9 MB / 250.7 MB, free: 8.453 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009221/0.009221, allocations: 2.324 MB / 304.4 MB, free: 6.488 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 99.83 kB / 420.3 MB, free: 22.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0865/0.08834, allocations: 51.2 MB / 471.5 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.008322/0.09669, allocations: 6.776 MB / 478.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005644/0.1024, allocations: 3.138 MB / 481.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009988/0.1034, allocations: 23.94 kB / 481.4 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00285/0.1063, allocations: 1.096 MB / 482.5 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002383/0.1087, allocations: 0.8428 MB / 483.4 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001891/0.1106, allocations: 0.5325 MB / 483.9 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001972/0.1126, allocations: 1.39 MB / 485.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001764/0.1143, allocations: 1.025 MB / 486.3 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008819/0.1152, allocations: 0.5527 MB / 486.9 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001137/0.1164, allocations: 0.7238 MB / 487.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003775/0.1168, allocations: 140 kB / 487.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001126/0.1179, allocations: 435.6 kB / 488.2 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003803/0.1183, allocations: 291.1 kB / 488.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000909/0.1192, allocations: 0.6337 MB / 489.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002394/0.1216, allocations: 1.752 MB / 490.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1216, allocations: 0 / 490.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1216, allocations: 0 / 490.8 MB, free: 15.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.184e-05/0.1217, allocations: 0 / 490.8 MB, free: 15.85 MB / 366.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.004778/0.1265, allocations: 1.771 MB / 492.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.1265, allocations: 8.031 kB / 492.6 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002186/0.1287, allocations: 371.2 kB / 493 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001847/0.1306, allocations: 0.7639 MB / 493.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.054e-05/0.1307, allocations: 78.06 kB / 493.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002333/0.1309, allocations: 116 kB / 493.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002396/0.1333, allocations: 1.172 MB / 495.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.051e-05/0.1334, allocations: 7.906 kB / 495.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/0.1335, allocations: 44 kB / 495.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.407e-05/0.1335, allocations: 28 kB / 495.2 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002265/0.1358, allocations: 1.034 MB / 496.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00665/0.1425, allocations: 4.365 MB / 0.4889 GB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002905/0.1454, allocations: 1.774 MB / 0.4906 GB, free: 3.746 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007606/0.1462, allocations: 367.4 kB / 0.4909 GB, free: 3.379 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001573/0.1463, allocations: 174.8 kB / 0.4911 GB, free: 3.172 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009398/0.1473, allocations: 0.5475 MB / 0.4916 GB, free: 2.582 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 3.196e-06/0.1473, allocations: 0 / 0.4916 GB, free: 2.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.005741/0.1531, allocations: 1.706 MB / 0.4933 GB, free: 0.832 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/0.1532, allocations: 281.7 kB / 0.4936 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007541/0.154, allocations: 0.5535 MB / 0.4941 GB, free: 15.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.474e-05/0.154, allocations: 49.64 kB / 0.4942 GB, free: 15.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003631/0.1544, allocations: 494.5 kB / 0.4946 GB, free: 15.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002234/0.1546, allocations: 252.5 kB / 0.4949 GB, free: 15.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003409/0.155, allocations: 222.7 kB / 0.4951 GB, free: 14.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.1552, allocations: 382.8 kB / 0.4955 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007571/0.1559, allocations: 322.4 kB / 0.4958 GB, free: 14.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008903/0.1568, allocations: 0.5682 MB / 0.4963 GB, free: 13.55 MB / 382.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.01721/0.1741, allocations: 3.623 MB / 0.4999 GB, free: 9.762 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.191e-05/0.1741, allocations: 8 kB / 0.4999 GB, free: 9.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00264/0.1767, allocations: 1.198 MB / 0.501 GB, free: 8.527 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.557e-05/0.1768, allocations: 99.59 kB / 0.5011 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.1769, allocations: 11.94 kB / 0.5011 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004357/0.1773, allocations: 85.03 kB / 0.5012 GB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.1784, allocations: 247.6 kB / 0.5015 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/0.1799, allocations: 1.586 MB / 0.503 GB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009219/0.1809, allocations: 114.9 kB / 0.5031 GB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.945e-05/0.181, allocations: 63.89 kB / 0.5032 GB, free: 6.172 MB / 382.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.0005912/0.1816, allocations: 361.4 kB / 0.5035 GB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002094/0.1818, allocations: 75.16 kB / 0.5036 GB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002596/0.1844, allocations: 1.268 MB / 0.5048 GB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.1844, allocations: 11.98 kB / 0.5048 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1844, allocations: 0 / 0.5048 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.1844, allocations: 3.984 kB / 0.5048 GB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006418/0.1909, allocations: 2.539 MB / 0.5073 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.1909, allocations: 4.031 kB / 0.5073 GB, free: 1.773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005834/0.1915, allocations: 139.8 kB / 0.5075 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007753/0.1923, allocations: 322.2 kB / 0.5078 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.132e-05/0.1924, allocations: 35.97 kB / 0.5078 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/0.1936, allocations: 0.8896 MB / 0.5087 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1937, allocations: 0 / 0.5087 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1989/0.3926, allocations: 1.924 MB / 0.5105 GB, free: 46.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004171/0.393, allocations: 241.5 kB / 0.5108 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002063/0.3932, allocations: 29.39 kB / 0.5108 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007165/0.394, allocations: 52.34 kB / 0.5109 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.3941, allocations: 57.06 kB / 0.5109 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.11e-05/0.3942, allocations: 37.11 kB / 0.5109 GB, free: 46.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005712/0.3948, allocations: 399.2 kB / 0.5113 GB, free: 46.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3948, allocations: 2.719 kB / 0.5113 GB, free: 46.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001097/0.3959, allocations: 336.2 kB / 0.5116 GB, free: 46.34 MB / 382.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.0007203/0.3966, allocations: 352.7 kB / 0.512 GB, free: 46.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002302/0.3989, allocations: 1.158 MB / 0.5131 GB, free: 45.92 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.399, allocations: 3.062 kB / 0.5131 GB, free: 45.92 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.4, allocations: 0.6683 MB / 0.5138 GB, free: 45.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008344/0.4009, allocations: 151.5 kB / 0.5139 GB, free: 45.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003299/0.4042, allocations: 1.806 MB / 0.5157 GB, free: 44.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005864/0.4048, allocations: 1.012 MB / 0.5167 GB, free: 43.94 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003405/0.4051, allocations: 93.64 kB / 0.5168 GB, free: 43.92 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4051, allocations: 0 / 0.5168 GB, free: 43.92 MB / 382.1 MB Notification: Performance of Templates: time 0.02235/0.4275, allocations: 17.31 MB / 0.5337 GB, free: 36.57 MB / 382.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)