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.02532/0.02532, allocations: 5.395 MB / 21.7 MB, free: 1.387 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.001069/0.001069, allocations: 115 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.001321/0.001321, allocations: 195.5 kB / 25.82 MB, free: 4.676 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.322/1.322, allocations: 222.9 MB / 250.7 MB, free: 8.434 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009524/0.009524, allocations: 2.317 MB / 304.4 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 91.86 kB / 420.3 MB, free: 22.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09086/0.09264, allocations: 51.2 MB / 471.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.007666/0.1003, allocations: 6.779 MB / 478.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005301/0.1057, allocations: 3.134 MB / 481.4 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006737/0.1064, allocations: 16 kB / 481.4 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002469/0.1089, allocations: 1.119 MB / 482.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001772/0.1106, allocations: 0.8584 MB / 483.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001451/0.1121, allocations: 0.534 MB / 484 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001313/0.1134, allocations: 1.382 MB / 485.3 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001375/0.1148, allocations: 1.028 MB / 486.4 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006181/0.1154, allocations: 0.5566 MB / 486.9 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007921/0.1162, allocations: 0.7237 MB / 487.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001686/0.1164, allocations: 140 kB / 487.8 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007179/0.1171, allocations: 431.7 kB / 488.2 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002213/0.1174, allocations: 291 kB / 488.5 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005295/0.1179, allocations: 0.6337 MB / 489.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001681/0.1196, allocations: 1.756 MB / 490.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.1196, allocations: 0 / 490.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1196, allocations: 0 / 490.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.1197, allocations: 4 kB / 490.9 MB, free: 15.79 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.004157/0.1238, allocations: 1.767 MB / 492.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1239, allocations: 8.031 kB / 492.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00212/0.126, allocations: 367.3 kB / 493 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001585/0.1276, allocations: 0.7639 MB / 493.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.311e-05/0.1277, allocations: 78.06 kB / 493.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001691/0.1278, allocations: 108 kB / 494 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002143/0.13, allocations: 1.176 MB / 495.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/0.13, allocations: 7.906 kB / 495.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.1301, allocations: 44 kB / 495.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.181e-05/0.1302, allocations: 28 kB / 495.2 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002204/0.1324, allocations: 1.044 MB / 496.3 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006151/0.1385, allocations: 4.361 MB / 0.4889 GB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003014/0.1416, allocations: 1.772 MB / 0.4906 GB, free: 3.691 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007854/0.1424, allocations: 362.8 kB / 0.491 GB, free: 3.332 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001606/0.1426, allocations: 178.7 kB / 0.4911 GB, free: 3.121 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001038/0.1436, allocations: 0.5475 MB / 0.4917 GB, free: 2.531 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.315e-06/0.1436, allocations: 0 / 0.4917 GB, free: 2.531 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006119/0.1497, allocations: 1.706 MB / 0.4933 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.1499, allocations: 285.6 kB / 0.4936 GB, free: 452 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007862/0.1507, allocations: 0.5535 MB / 0.4941 GB, free: 15.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.569e-05/0.1508, allocations: 45.7 kB / 0.4942 GB, free: 15.83 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003962/0.1512, allocations: 494.5 kB / 0.4947 GB, free: 15.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000231/0.1515, allocations: 256.5 kB / 0.4949 GB, free: 15.08 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003133/0.1518, allocations: 214.7 kB / 0.4951 GB, free: 14.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.152, allocations: 382.8 kB / 0.4955 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007739/0.1527, allocations: 322.4 kB / 0.4958 GB, free: 14.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009408/0.1537, allocations: 0.5721 MB / 0.4963 GB, free: 13.5 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.01836/0.1721, allocations: 3.623 MB / 0.4999 GB, free: 9.711 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.6e-05/0.1721, allocations: 8 kB / 0.4999 GB, free: 9.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002791/0.1749, allocations: 1.205 MB / 0.5011 GB, free: 8.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.333e-05/0.175, allocations: 89.11 kB / 0.5011 GB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.175, allocations: 8 kB / 0.5012 GB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004608/0.1755, allocations: 85.03 kB / 0.5012 GB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/0.1767, allocations: 259.5 kB / 0.5015 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001613/0.1783, allocations: 1.582 MB / 0.503 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009518/0.1792, allocations: 118.9 kB / 0.5031 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.279e-05/0.1793, allocations: 51.97 kB / 0.5032 GB, free: 6.125 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.0005726/0.1799, allocations: 381.2 kB / 0.5036 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/0.1801, allocations: 75.16 kB / 0.5036 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002655/0.1827, allocations: 1.261 MB / 0.5049 GB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.1828, allocations: 8 kB / 0.5049 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.1828, allocations: 0 / 0.5049 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.1828, allocations: 7.984 kB / 0.5049 GB, free: 4.344 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006621/0.1894, allocations: 2.543 MB / 0.5074 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.1895, allocations: 4.031 kB / 0.5074 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006478/0.1901, allocations: 131.8 kB / 0.5075 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000828/0.191, allocations: 334.2 kB / 0.5078 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.835e-05/0.1911, allocations: 31.97 kB / 0.5078 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001337/0.1924, allocations: 0.8857 MB / 0.5087 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.1924, allocations: 0 / 0.5087 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2427/0.4351, allocations: 1.923 MB / 0.5106 GB, free: 46.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004067/0.4355, allocations: 238.2 kB / 0.5108 GB, free: 46.47 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001549/0.4357, allocations: 28.95 kB / 0.5108 GB, free: 46.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006852/0.4364, allocations: 56.25 kB / 0.5109 GB, free: 46.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/0.4365, allocations: 58.61 kB / 0.5109 GB, free: 46.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.695e-05/0.4366, allocations: 37.88 kB / 0.511 GB, free: 46.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005175/0.4371, allocations: 396 kB / 0.5114 GB, free: 46.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4372, allocations: 1.125 kB / 0.5114 GB, free: 46.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001072/0.4382, allocations: 339.4 kB / 0.5117 GB, free: 46.38 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.0007316/0.439, allocations: 356.1 kB / 0.512 GB, free: 46.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002272/0.4413, allocations: 1.158 MB / 0.5132 GB, free: 45.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4413, allocations: 3.781 kB / 0.5132 GB, free: 45.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.4424, allocations: 0.6617 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.0008692/0.4433, allocations: 145.1 kB / 0.5139 GB, free: 45.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003412/0.4467, allocations: 1.808 MB / 0.5157 GB, free: 44.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005588/0.4473, allocations: 1.015 MB / 0.5167 GB, free: 43.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003475/0.4476, allocations: 93.22 kB / 0.5168 GB, free: 43.93 MB / 382.1 MB Notification: Performance of SimCode: time 2.144e-06/0.4477, allocations: 0 / 0.5168 GB, free: 43.93 MB / 382.1 MB Notification: Performance of Templates: time 0.02438/0.472, allocations: 17.32 MB / 0.5337 GB, free: 36.49 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)