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.02583/0.02583, allocations: 5.401 MB / 21.03 MB, free: 1.582 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.0008251/0.0008252, allocations: 97.17 kB / 23.02 MB, free: 0.793 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.0009842/0.0009842, allocations: 199.9 kB / 25.15 MB, free: 176 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.202/1.202, allocations: 222.9 MB / 250 MB, free: 8.426 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008753/0.008753, allocations: 2.318 MB / 303.7 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 103.8 kB / 419.6 MB, free: 22.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07964/0.08128, allocations: 51.2 MB / 470.8 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.007446/0.08876, allocations: 6.777 MB / 477.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004793/0.09358, allocations: 3.131 MB / 480.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000794/0.0944, allocations: 23.94 kB / 480.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002501/0.09691, allocations: 1.096 MB / 481.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00191/0.09884, allocations: 0.8429 MB / 482.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.1003, allocations: 0.5401 MB / 483.2 MB, free: 6.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001575/0.1019, allocations: 1.382 MB / 484.6 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00143/0.1033, allocations: 1.028 MB / 485.7 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007256/0.1041, allocations: 0.5605 MB / 486.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008837/0.105, allocations: 0.7159 MB / 486.9 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001615/0.1051, allocations: 144 kB / 487.1 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006407/0.1058, allocations: 435.7 kB / 487.5 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001945/0.106, allocations: 287 kB / 487.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004788/0.1065, allocations: 0.6298 MB / 488.4 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001527/0.108, allocations: 1.756 MB / 490.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.108, allocations: 0 / 490.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.108, allocations: 0 / 490.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.1081, allocations: 0 / 490.2 MB, free: 15.84 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.003749/0.1118, allocations: 1.775 MB / 491.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.1118, allocations: 12.03 kB / 492 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001945/0.1138, allocations: 367.3 kB / 492.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001479/0.1153, allocations: 0.764 MB / 493.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.994e-05/0.1154, allocations: 82.06 kB / 493.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.1155, allocations: 104 kB / 493.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001928/0.1175, allocations: 1.168 MB / 494.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.1175, allocations: 11.84 kB / 494.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-05/0.1176, allocations: 52 kB / 494.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.911e-05/0.1176, allocations: 24 kB / 494.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001992/0.1196, allocations: 1.037 MB / 495.5 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005483/0.1251, allocations: 4.361 MB / 499.9 MB, free: 5.715 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002681/0.1278, allocations: 1.768 MB / 0.4899 GB, free: 3.738 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006947/0.1285, allocations: 363.4 kB / 0.4903 GB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001509/0.1287, allocations: 182.7 kB / 0.4904 GB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008971/0.1296, allocations: 0.5474 MB / 0.491 GB, free: 2.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.244e-06/0.1296, allocations: 0 / 0.491 GB, free: 2.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.005575/0.1352, allocations: 1.709 MB / 0.4926 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.1353, allocations: 281.6 kB / 0.4929 GB, free: 492 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006013/0.1359, allocations: 0.5574 MB / 0.4935 GB, free: 15.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.403e-05/0.136, allocations: 41.7 kB / 0.4935 GB, free: 15.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003056/0.1363, allocations: 494.5 kB / 0.494 GB, free: 15.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.1365, allocations: 260.4 kB / 0.4942 GB, free: 15.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002858/0.1368, allocations: 214.7 kB / 0.4944 GB, free: 14.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.137, allocations: 382.8 kB / 0.4948 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006915/0.1377, allocations: 322.4 kB / 0.4951 GB, free: 14.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008236/0.1385, allocations: 0.5721 MB / 0.4957 GB, free: 13.54 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.01628/0.1548, allocations: 3.623 MB / 0.4992 GB, free: 9.746 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.1548, allocations: 0 / 0.4992 GB, free: 9.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002482/0.1573, allocations: 1.213 MB / 0.5004 GB, free: 8.504 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.993e-05/0.1574, allocations: 85.11 kB / 0.5005 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.1574, allocations: 8 kB / 0.5005 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004463/0.1579, allocations: 93.02 kB / 0.5006 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.1589, allocations: 255.5 kB / 0.5008 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.1603, allocations: 1.582 MB / 0.5023 GB, free: 6.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008649/0.1612, allocations: 122.9 kB / 0.5025 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.917e-05/0.1613, allocations: 51.97 kB / 0.5025 GB, free: 6.156 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.0005653/0.1619, allocations: 365.2 kB / 0.5029 GB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001749/0.1621, allocations: 79.22 kB / 0.5029 GB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002417/0.1645, allocations: 1.265 MB / 0.5042 GB, free: 4.395 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.1645, allocations: 8 kB / 0.5042 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.1645, allocations: 0 / 0.5042 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.948e-06/0.1645, allocations: 3.984 kB / 0.5042 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006007/0.1706, allocations: 2.543 MB / 0.5067 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.1706, allocations: 4 kB / 0.5067 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005198/0.1711, allocations: 131.8 kB / 0.5068 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007279/0.1718, allocations: 330.3 kB / 0.5071 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.428e-05/0.1719, allocations: 31.97 kB / 0.5071 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001166/0.1731, allocations: 0.8935 MB / 0.508 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1731, allocations: 0 / 0.508 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1834/0.3565, allocations: 1.918 MB / 0.5099 GB, free: 46.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003067/0.3569, allocations: 238 kB / 0.5101 GB, free: 46.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/0.357, allocations: 35 kB / 0.5101 GB, free: 46.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005929/0.3576, allocations: 50.88 kB / 0.5102 GB, free: 46.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.3577, allocations: 56.97 kB / 0.5102 GB, free: 46.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.528e-05/0.3578, allocations: 42.89 kB / 0.5103 GB, free: 46.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004307/0.3582, allocations: 392.1 kB / 0.5107 GB, free: 46.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3582, allocations: 1 kB / 0.5107 GB, free: 46.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008614/0.3591, allocations: 341.4 kB / 0.511 GB, free: 46.41 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.0005551/0.3597, allocations: 349.1 kB / 0.5113 GB, free: 46.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00182/0.3615, allocations: 1.157 MB / 0.5124 GB, free: 45.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3615, allocations: 1.438 kB / 0.5125 GB, free: 45.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008848/0.3624, allocations: 0.6703 MB / 0.5131 GB, free: 45.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006666/0.3631, allocations: 141.7 kB / 0.5132 GB, free: 45.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002545/0.3656, allocations: 1.781 MB / 0.515 GB, free: 44.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.366, allocations: 1.012 MB / 0.516 GB, free: 44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003878/0.3664, allocations: 130.5 kB / 0.5161 GB, free: 43.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002244/0.3667, allocations: 86.91 kB / 0.5162 GB, free: 43.95 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3667, allocations: 1.094 kB / 0.5162 GB, free: 43.95 MB / 382.1 MB Notification: Performance of Templates: time 0.01792/0.3846, allocations: 13.27 MB / 0.5291 GB, free: 39.54 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)