Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.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_Comax_Analytical_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.05089/0.05089, allocations: 5.393 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.001127/0.001127, allocations: 102.4 kB / 23.03 MB, free: 0.8086 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.001888/0.001888, allocations: 200.8 kB / 25.15 MB, free: 160 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.539/1.539, allocations: 222.9 MB / 250 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.0149/0.0149, allocations: 2.321 MB / 303.7 MB, free: 6.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 87.86 kB / 419.6 MB, free: 22.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1195, allocations: 51.21 MB / 470.8 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629): time 0.009374/0.129, allocations: 6.773 MB / 477.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008359/0.1374, allocations: 3.131 MB / 480.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001358/0.1388, allocations: 19.94 kB / 480.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003745/0.1426, allocations: 1.104 MB / 481.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003197/0.1458, allocations: 0.8429 MB / 482.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00233/0.1481, allocations: 0.5351 MB / 483.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002548/0.1507, allocations: 1.386 MB / 484.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002425/0.1531, allocations: 1.032 MB / 485.7 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.1543, allocations: 0.5566 MB / 486.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001383/0.1557, allocations: 0.7159 MB / 486.9 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004573/0.1561, allocations: 140 kB / 487.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001223/0.1574, allocations: 435.7 kB / 487.5 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003747/0.1577, allocations: 287 kB / 487.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00115/0.1589, allocations: 0.6376 MB / 488.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00397/0.1629, allocations: 1.759 MB / 490.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1629, allocations: 4 kB / 490.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1629, allocations: 0 / 490.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.599e-05/0.163, allocations: 0 / 490.2 MB, free: 15.83 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.005611/0.1686, allocations: 1.8 MB / 492 MB, free: 13.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.1687, allocations: 8.031 kB / 492 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002342/0.171, allocations: 375.9 kB / 492.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001948/0.173, allocations: 0.7684 MB / 493.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.1731, allocations: 78.06 kB / 493.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002509/0.1734, allocations: 112 kB / 493.3 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002727/0.1761, allocations: 1.175 MB / 494.5 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.457e-05/0.1762, allocations: 3.984 kB / 494.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.1763, allocations: 44 kB / 494.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.488e-05/0.1763, allocations: 24 kB / 494.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002762/0.1791, allocations: 1.038 MB / 495.6 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007718/0.1868, allocations: 4.377 MB / 500 MB, free: 5.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003541/0.1904, allocations: 1.774 MB / 0.49 GB, free: 3.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009427/0.1914, allocations: 355.4 kB / 0.4903 GB, free: 3.324 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002787/0.1917, allocations: 186.6 kB / 0.4905 GB, free: 3.105 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001324/0.193, allocations: 0.5553 MB / 0.491 GB, free: 2.508 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 6.682e-06/0.193, allocations: 0 / 0.491 GB, free: 2.508 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006558/0.1996, allocations: 1.706 MB / 0.4927 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002935/0.1999, allocations: 281.7 kB / 0.493 GB, free: 432 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.2013, allocations: 0.5576 MB / 0.4935 GB, free: 15.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.2014, allocations: 45.7 kB / 0.4936 GB, free: 15.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004997/0.2019, allocations: 0.4922 MB / 0.494 GB, free: 15.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002891/0.2022, allocations: 265.8 kB / 0.4943 GB, free: 15.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004307/0.2026, allocations: 218.8 kB / 0.4945 GB, free: 14.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002502/0.2029, allocations: 378.8 kB / 0.4949 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008011/0.2037, allocations: 330.4 kB / 0.4952 GB, free: 14.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.2047, allocations: 0.5682 MB / 0.4957 GB, free: 13.46 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.0173/0.2221, allocations: 3.619 MB / 0.4993 GB, free: 9.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.175e-05/0.2221, allocations: 0 / 0.4993 GB, free: 9.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002909/0.225, allocations: 1.21 MB / 0.5005 GB, free: 8.434 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.2252, allocations: 97.14 kB / 0.5005 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.71e-05/0.2252, allocations: 7.984 kB / 0.5006 GB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004842/0.2257, allocations: 80.8 kB / 0.5006 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/0.2268, allocations: 259.5 kB / 0.5009 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001773/0.2286, allocations: 1.585 MB / 0.5024 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.2298, allocations: 119.2 kB / 0.5025 GB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.2299, allocations: 60.05 kB / 0.5026 GB, free: 6.074 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.0007512/0.2307, allocations: 372.4 kB / 0.5029 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002914/0.231, allocations: 83.48 kB / 0.503 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002902/0.2339, allocations: 1.257 MB / 0.5043 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.2339, allocations: 8 kB / 0.5043 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.2339, allocations: 0 / 0.5043 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.2339, allocations: 3.984 kB / 0.5043 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007006/0.2409, allocations: 2.555 MB / 0.5068 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.241, allocations: 0 / 0.5068 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006473/0.2416, allocations: 135.8 kB / 0.5069 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008162/0.2425, allocations: 334.2 kB / 0.5072 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.79e-05/0.2426, allocations: 31.97 kB / 0.5072 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.2439, allocations: 0.8858 MB / 0.5081 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.2439, allocations: 3.938 kB / 0.5081 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2646/0.5085, allocations: 1.921 MB / 0.51 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005873/0.5091, allocations: 237.8 kB / 0.5102 GB, free: 46.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002537/0.5094, allocations: 36.38 kB / 0.5102 GB, free: 46.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007724/0.5102, allocations: 51.36 kB / 0.5103 GB, free: 46.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/0.5104, allocations: 59.31 kB / 0.5104 GB, free: 46.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.494e-05/0.5105, allocations: 36.59 kB / 0.5104 GB, free: 46.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006648/0.5112, allocations: 397.7 kB / 0.5108 GB, free: 46.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5112, allocations: 0 / 0.5108 GB, free: 46.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001189/0.5124, allocations: 344.1 kB / 0.5111 GB, free: 46.25 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.0007891/0.5132, allocations: 347.3 kB / 0.5114 GB, free: 46.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002521/0.5157, allocations: 1.164 MB / 0.5126 GB, free: 45.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5157, allocations: 0 / 0.5126 GB, free: 45.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.5168, allocations: 0.6692 MB / 0.5132 GB, free: 45.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009281/0.5177, allocations: 146.1 kB / 0.5134 GB, free: 45.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003931/0.5217, allocations: 1.818 MB / 0.5151 GB, free: 44.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006403/0.5223, allocations: 1.015 MB / 0.5161 GB, free: 43.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005806/0.5229, allocations: 120.6 kB / 0.5162 GB, free: 43.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003465/0.5233, allocations: 88.2 kB / 0.5163 GB, free: 43.75 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.5233, allocations: 4 kB / 0.5163 GB, free: 43.74 MB / 382.1 MB Notification: Performance of Templates: time 0.02762/0.5509, allocations: 12.93 MB / 0.529 GB, free: 39.63 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.pipe 2>&1)