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.03032/0.03032, allocations: 5.394 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.001017/0.001017, allocations: 99.78 kB / 23.02 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.001058/0.001058, allocations: 202.6 kB / 25.15 MB, free: 148 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.254/1.254, allocations: 222.9 MB / 250 MB, free: 8.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01118/0.01118, allocations: 2.333 MB / 303.7 MB, free: 6.441 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 100.2 kB / 419.6 MB, free: 22.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0975/0.09909, allocations: 51.21 MB / 470.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629): time 0.007809/0.1069, allocations: 6.776 MB / 477.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005576/0.1126, allocations: 3.131 MB / 480.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005627/0.1131, allocations: 19.94 kB / 480.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002445/0.1156, allocations: 1.096 MB / 481.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001828/0.1174, allocations: 0.8467 MB / 482.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001467/0.1189, allocations: 0.533 MB / 483.2 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001293/0.1202, allocations: 1.386 MB / 484.6 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001278/0.1215, allocations: 1.028 MB / 485.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005974/0.1221, allocations: 0.5645 MB / 486.2 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007711/0.1229, allocations: 0.712 MB / 486.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001535/0.123, allocations: 144 kB / 487.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007466/0.1238, allocations: 431.7 kB / 487.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002014/0.124, allocations: 291 kB / 487.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005107/0.1245, allocations: 0.6298 MB / 488.4 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001721/0.1263, allocations: 1.76 MB / 490.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1263, allocations: 0 / 490.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1263, allocations: 4 kB / 490.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.617e-05/0.1263, allocations: 0 / 490.2 MB, free: 15.8 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.003946/0.1303, allocations: 1.763 MB / 491.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.1303, allocations: 12.03 kB / 491.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001969/0.1323, allocations: 375.2 kB / 492.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001612/0.1339, allocations: 0.7601 MB / 493.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.861e-05/0.134, allocations: 82 kB / 493.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.1342, allocations: 108 kB / 493.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002071/0.1362, allocations: 1.172 MB / 494.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.1363, allocations: 7.906 kB / 494.4 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/0.1364, allocations: 44 kB / 494.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.066e-05/0.1364, allocations: 27.94 kB / 494.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002039/0.1385, allocations: 1.038 MB / 495.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005837/0.1443, allocations: 4.357 MB / 499.9 MB, free: 5.691 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002908/0.1472, allocations: 1.778 MB / 0.4899 GB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007485/0.148, allocations: 363.4 kB / 0.4903 GB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001725/0.1482, allocations: 178.8 kB / 0.4904 GB, free: 3.133 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000928/0.1491, allocations: 0.5474 MB / 0.491 GB, free: 2.543 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.495e-06/0.1491, allocations: 4 kB / 0.491 GB, free: 2.539 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.005744/0.1549, allocations: 1.706 MB / 0.4926 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001603/0.1551, allocations: 277.7 kB / 0.4929 GB, free: 468 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007295/0.1558, allocations: 0.5574 MB / 0.4935 GB, free: 15.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.868e-05/0.1559, allocations: 41.7 kB / 0.4935 GB, free: 15.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000361/0.1562, allocations: 498.5 kB / 0.494 GB, free: 15.35 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002087/0.1565, allocations: 256.4 kB / 0.4942 GB, free: 15.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002996/0.1568, allocations: 214.7 kB / 0.4944 GB, free: 14.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1569, allocations: 378.8 kB / 0.4948 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007078/0.1576, allocations: 334.4 kB / 0.4951 GB, free: 14.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008571/0.1585, allocations: 0.5644 MB / 0.4956 GB, free: 13.51 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.01662/0.1751, allocations: 3.627 MB / 0.4992 GB, free: 9.719 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.249e-05/0.1752, allocations: 0 / 0.4992 GB, free: 9.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002667/0.1779, allocations: 1.205 MB / 0.5004 GB, free: 8.484 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.898e-05/0.178, allocations: 95.44 kB / 0.5005 GB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/0.178, allocations: 8.25 kB / 0.5005 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004578/0.1785, allocations: 88.72 kB / 0.5006 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/0.1796, allocations: 251.6 kB / 0.5008 GB, free: 8.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001555/0.1811, allocations: 1.582 MB / 0.5023 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009119/0.1821, allocations: 122.9 kB / 0.5025 GB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.442e-05/0.1822, allocations: 47.97 kB / 0.5025 GB, free: 6.141 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.0005768/0.1827, allocations: 373.3 kB / 0.5029 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/0.183, allocations: 75.16 kB / 0.5029 GB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002578/0.1855, allocations: 1.261 MB / 0.5042 GB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.1856, allocations: 15.98 kB / 0.5042 GB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.1856, allocations: 0 / 0.5042 GB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.1856, allocations: 3.984 kB / 0.5042 GB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006012/0.1916, allocations: 2.543 MB / 0.5067 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.1916, allocations: 7.938 kB / 0.5067 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005457/0.1922, allocations: 123.9 kB / 0.5068 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007703/0.193, allocations: 342.2 kB / 0.5071 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.854e-05/0.193, allocations: 31.97 kB / 0.5071 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001228/0.1943, allocations: 0.8858 MB / 0.508 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.1943, allocations: 64 / 0.508 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2354/0.4297, allocations: 1.92 MB / 0.5099 GB, free: 46.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004831/0.4303, allocations: 235.7 kB / 0.5101 GB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002182/0.4305, allocations: 29.38 kB / 0.5101 GB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007686/0.4313, allocations: 62.17 kB / 0.5102 GB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.4314, allocations: 56.53 kB / 0.5102 GB, free: 46.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.299e-05/0.4315, allocations: 38.27 kB / 0.5103 GB, free: 46.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006405/0.4322, allocations: 393.3 kB / 0.5107 GB, free: 46.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4322, allocations: 0 / 0.5107 GB, free: 46.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00118/0.4334, allocations: 342.6 kB / 0.511 GB, free: 46.31 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.0006432/0.434, allocations: 344.4 kB / 0.5113 GB, free: 46.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002096/0.4361, allocations: 1.161 MB / 0.5124 GB, free: 45.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4361, allocations: 3.375 kB / 0.5125 GB, free: 45.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009403/0.4371, allocations: 0.6717 MB / 0.5131 GB, free: 45.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007722/0.4379, allocations: 141.1 kB / 0.5132 GB, free: 45.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00287/0.4408, allocations: 1.776 MB / 0.515 GB, free: 44.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.4412, allocations: 1.012 MB / 0.516 GB, free: 43.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004483/0.4417, allocations: 130.7 kB / 0.5161 GB, free: 43.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.4419, allocations: 87.33 kB / 0.5162 GB, free: 43.88 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4419, allocations: 0 / 0.5162 GB, free: 43.88 MB / 382.1 MB Notification: Performance of Templates: time 0.02418/0.4661, allocations: 13.28 MB / 0.5291 GB, free: 39.46 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)