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.03573/0.03573, allocations: 5.393 MB / 21.7 MB, free: 1.391 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.001106/0.001106, allocations: 107.7 kB / 23.7 MB, free: 0.9453 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.001353/0.001353, allocations: 197.4 kB / 25.83 MB, free: 4.68 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.316/1.316, 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.01183/0.01183, allocations: 2.315 MB / 304.4 MB, free: 6.5 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 99.84 kB / 420.3 MB, free: 22.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08832/0.09005, allocations: 51.2 MB / 471.5 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629): time 0.008277/0.09838, allocations: 6.773 MB / 478.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005657/0.1041, allocations: 3.127 MB / 481.4 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008579/0.105, allocations: 23.94 kB / 481.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002762/0.1078, allocations: 1.108 MB / 482.5 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002275/0.11, allocations: 0.839 MB / 483.4 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001881/0.1119, allocations: 0.5367 MB / 483.9 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00201/0.114, allocations: 1.386 MB / 485.3 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00182/0.1158, allocations: 1.028 MB / 486.3 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009116/0.1167, allocations: 0.5605 MB / 486.9 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00112/0.1179, allocations: 0.7159 MB / 487.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002491/0.1181, allocations: 144 kB / 487.8 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.1192, allocations: 427.7 kB / 488.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002666/0.1194, allocations: 291 kB / 488.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009131/0.1204, allocations: 0.6376 MB / 489.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00233/0.1227, allocations: 1.748 MB / 490.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1227, allocations: 0 / 490.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1227, allocations: 0 / 490.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.947e-05/0.1228, allocations: 4 kB / 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.004187/0.1269, allocations: 1.771 MB / 492.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.127, allocations: 16.02 kB / 492.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002082/0.1291, allocations: 367.3 kB / 493 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001681/0.1308, allocations: 0.7601 MB / 493.8 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.84e-05/0.1309, allocations: 78.06 kB / 493.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.131, allocations: 108 kB / 493.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.1331, allocations: 1.172 MB / 495.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.962e-05/0.1331, allocations: 7.844 kB / 495.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.1332, allocations: 47.94 kB / 495.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/0.1332, allocations: 24 kB / 495.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002084/0.1353, allocations: 1.042 MB / 496.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005976/0.1413, allocations: 4.365 MB / 0.4889 GB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002832/0.1442, allocations: 1.76 MB / 0.4906 GB, free: 3.758 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007528/0.145, allocations: 366.8 kB / 0.4909 GB, free: 3.395 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001568/0.1451, allocations: 170.8 kB / 0.4911 GB, free: 3.191 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009443/0.1461, allocations: 0.5669 MB / 0.4916 GB, free: 2.582 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 3.747e-06/0.1461, allocations: 3.984 kB / 0.4916 GB, free: 2.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.006444/0.1525, allocations: 1.702 MB / 0.4933 GB, free: 0.832 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.1527, allocations: 281.7 kB / 0.4936 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007178/0.1534, allocations: 0.5574 MB / 0.4941 GB, free: 15.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.049e-05/0.1535, allocations: 41.7 kB / 0.4942 GB, free: 15.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003522/0.1538, allocations: 498.5 kB / 0.4946 GB, free: 15.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002033/0.1541, allocations: 248.5 kB / 0.4949 GB, free: 15.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003075/0.1544, allocations: 214.7 kB / 0.4951 GB, free: 14.92 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1545, allocations: 382.8 kB / 0.4954 GB, free: 14.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007372/0.1553, allocations: 330.4 kB / 0.4958 GB, free: 14.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008854/0.1562, allocations: 0.5643 MB / 0.4963 GB, free: 13.56 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.01872/0.1749, allocations: 3.623 MB / 0.4998 GB, free: 9.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.075e-05/0.1749, allocations: 0 / 0.4998 GB, free: 9.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002629/0.1776, allocations: 1.209 MB / 0.501 GB, free: 8.531 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.799e-05/0.1777, allocations: 95.28 kB / 0.5011 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.1777, allocations: 8 kB / 0.5011 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000473/0.1782, allocations: 93.02 kB / 0.5012 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.1793, allocations: 251.5 kB / 0.5015 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.1809, allocations: 1.578 MB / 0.503 GB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009823/0.1819, allocations: 123 kB / 0.5031 GB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.29e-05/0.1819, allocations: 51.97 kB / 0.5032 GB, free: 6.184 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.000574/0.1825, allocations: 377.1 kB / 0.5035 GB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.1827, allocations: 79.14 kB / 0.5036 GB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002568/0.1853, allocations: 1.261 MB / 0.5048 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.1853, allocations: 8 kB / 0.5048 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1853, allocations: 0 / 0.5048 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.1853, allocations: 3.984 kB / 0.5048 GB, free: 4.406 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006743/0.1921, allocations: 2.539 MB / 0.5073 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/0.1921, allocations: 4 kB / 0.5073 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006142/0.1927, allocations: 127.8 kB / 0.5074 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008131/0.1936, allocations: 342.2 kB / 0.5078 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.131e-05/0.1936, allocations: 35.95 kB / 0.5078 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001319/0.195, allocations: 0.8897 MB / 0.5087 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.195, allocations: 0 / 0.5087 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2109/0.4059, allocations: 1.917 MB / 0.5105 GB, free: 46.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004301/0.4063, allocations: 238.6 kB / 0.5108 GB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001747/0.4065, allocations: 27.09 kB / 0.5108 GB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007122/0.4072, allocations: 55.97 kB / 0.5109 GB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.4074, allocations: 59.78 kB / 0.5109 GB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-05/0.4075, allocations: 38.22 kB / 0.5109 GB, free: 46.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005384/0.408, allocations: 395.4 kB / 0.5113 GB, free: 46.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.408, allocations: 0.8125 kB / 0.5113 GB, free: 46.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001055/0.4091, allocations: 337.3 kB / 0.5116 GB, free: 46.39 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.0007175/0.4098, allocations: 355.2 kB / 0.512 GB, free: 46.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002219/0.4121, allocations: 1.157 MB / 0.5131 GB, free: 45.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.4121, allocations: 0 / 0.5131 GB, free: 45.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.4131, allocations: 0.6677 MB / 0.5138 GB, free: 45.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008349/0.414, allocations: 142.5 kB / 0.5139 GB, free: 45.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00317/0.4172, allocations: 1.812 MB / 0.5157 GB, free: 44.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000536/0.4177, allocations: 1.019 MB / 0.5167 GB, free: 43.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003092/0.418, allocations: 97.14 kB / 0.5168 GB, free: 43.96 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.418, allocations: 0 / 0.5168 GB, free: 43.96 MB / 382.1 MB Notification: Performance of Templates: time 0.02288/0.4409, allocations: 17.45 MB / 0.5338 GB, free: 36.39 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)