Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02891/0.02891, 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.0009509/0.0009509, allocations: 99.78 kB / 23.02 MB, free: 0.7891 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.0011/0.0011, allocations: 206.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.252/1.252, allocations: 222.9 MB / 250 MB, free: 8.406 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.00883/0.00883, allocations: 2.316 MB / 303.7 MB, free: 6.449 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 91.84 kB / 419.6 MB, free: 22.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0982/0.09974, allocations: 51.21 MB / 470.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704): time 0.00786/0.1076, allocations: 6.773 MB / 477.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005191/0.1128, allocations: 3.135 MB / 480.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006515/0.1135, allocations: 16 kB / 480.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00238/0.1159, allocations: 1.096 MB / 481.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002025/0.1179, allocations: 0.8503 MB / 482.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001622/0.1196, allocations: 0.5326 MB / 483.2 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001465/0.1211, allocations: 1.382 MB / 484.6 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001294/0.1224, allocations: 1.04 MB / 485.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005806/0.123, allocations: 0.5527 MB / 486.2 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007625/0.1237, allocations: 0.7159 MB / 486.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001679/0.1239, allocations: 140 kB / 487.1 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007638/0.1247, allocations: 431.7 kB / 487.5 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002267/0.1249, allocations: 291 kB / 487.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000533/0.1254, allocations: 0.6337 MB / 488.4 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001744/0.1272, allocations: 1.756 MB / 490.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1272, allocations: 0 / 490.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1272, allocations: 0 / 490.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.1272, allocations: 0 / 490.2 MB, free: 15.81 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.003822/0.1311, allocations: 1.767 MB / 491.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.1311, allocations: 12.03 kB / 491.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001954/0.1331, allocations: 371.2 kB / 492.3 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/0.1346, allocations: 0.76 MB / 493.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.265e-05/0.1347, allocations: 78.06 kB / 493.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.1349, allocations: 112 kB / 493.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001972/0.1368, allocations: 1.179 MB / 494.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.817e-05/0.1369, allocations: 3.906 kB / 494.4 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.494e-05/0.137, allocations: 48 kB / 494.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/0.137, allocations: 35.88 kB / 494.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002042/0.1391, allocations: 1.027 MB / 495.5 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005882/0.145, allocations: 4.357 MB / 499.9 MB, free: 5.695 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002859/0.1478, allocations: 1.786 MB / 0.4899 GB, free: 3.703 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007255/0.1486, allocations: 363.4 kB / 0.4903 GB, free: 3.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001733/0.1488, allocations: 174.7 kB / 0.4904 GB, free: 3.133 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009644/0.1497, allocations: 0.5552 MB / 0.491 GB, free: 2.535 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.074e-06/0.1498, allocations: 0 / 0.491 GB, free: 2.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.005736/0.1555, allocations: 1.694 MB / 0.4926 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001518/0.1557, allocations: 285.7 kB / 0.4929 GB, free: 468 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006862/0.1564, allocations: 0.5613 MB / 0.4935 GB, free: 15.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.265e-05/0.1564, allocations: 45.7 kB / 0.4935 GB, free: 15.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003245/0.1567, allocations: 486.6 kB / 0.494 GB, free: 15.35 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.1569, allocations: 252.4 kB / 0.4942 GB, free: 15.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002882/0.1572, allocations: 218.7 kB / 0.4944 GB, free: 14.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1574, allocations: 382.8 kB / 0.4948 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007021/0.1581, allocations: 326.4 kB / 0.4951 GB, free: 14.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008445/0.1589, allocations: 0.5682 MB / 0.4956 GB, free: 13.52 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.01663/0.1756, allocations: 3.623 MB / 0.4992 GB, free: 9.727 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/0.1756, allocations: 8 kB / 0.4992 GB, free: 9.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002439/0.1781, allocations: 1.205 MB / 0.5004 GB, free: 8.484 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.496e-05/0.1781, allocations: 103.6 kB / 0.5005 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.1782, allocations: 8 kB / 0.5005 GB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004295/0.1786, allocations: 80.78 kB / 0.5006 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.1796, allocations: 259.5 kB / 0.5008 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/0.1811, allocations: 1.574 MB / 0.5023 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008864/0.182, allocations: 123 kB / 0.5025 GB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.741e-05/0.1821, allocations: 59.95 kB / 0.5025 GB, free: 6.129 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.0005422/0.1826, allocations: 361.2 kB / 0.5029 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.1828, allocations: 75.16 kB / 0.5029 GB, free: 5.672 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002455/0.1852, allocations: 1.265 MB / 0.5042 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.1852, allocations: 11.94 kB / 0.5042 GB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/0.1852, allocations: 0 / 0.5042 GB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/0.1853, allocations: 7.984 kB / 0.5042 GB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006129/0.1914, allocations: 2.535 MB / 0.5067 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.1914, allocations: 0 / 0.5067 GB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005465/0.192, allocations: 139.8 kB / 0.5068 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007446/0.1927, allocations: 326.2 kB / 0.5071 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.566e-05/0.1928, allocations: 35.97 kB / 0.5071 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.194, allocations: 0.8896 MB / 0.508 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.194, allocations: 4.062 kB / 0.508 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.227/0.4211, allocations: 1.918 MB / 0.5099 GB, free: 46.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004652/0.4216, allocations: 236.7 kB / 0.5101 GB, free: 46.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.4217, allocations: 34.97 kB / 0.5101 GB, free: 46.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000606/0.4223, allocations: 52.98 kB / 0.5102 GB, free: 46.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.4225, allocations: 59.92 kB / 0.5102 GB, free: 46.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.36e-05/0.4225, allocations: 36.59 kB / 0.5103 GB, free: 46.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005209/0.4231, allocations: 393.1 kB / 0.5107 GB, free: 46.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4231, allocations: 3.531 kB / 0.5107 GB, free: 46.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009998/0.4241, allocations: 339 kB / 0.511 GB, free: 46.23 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.0006573/0.4248, allocations: 346.5 kB / 0.5113 GB, free: 46.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002129/0.4269, allocations: 1.165 MB / 0.5125 GB, free: 45.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.4269, allocations: 0 / 0.5125 GB, free: 45.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009501/0.4279, allocations: 0.6709 MB / 0.5131 GB, free: 45.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007186/0.4286, allocations: 143.2 kB / 0.5132 GB, free: 45.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002945/0.4315, allocations: 1.776 MB / 0.515 GB, free: 44.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004877/0.432, allocations: 1.013 MB / 0.516 GB, free: 43.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004468/0.4325, allocations: 127.9 kB / 0.5161 GB, free: 43.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002454/0.4328, allocations: 87.08 kB / 0.5162 GB, free: 43.8 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.4328, allocations: 0 / 0.5162 GB, free: 43.8 MB / 382.1 MB Notification: Performance of Templates: time 0.01999/0.4528, allocations: 13.29 MB / 0.5291 GB, free: 39.42 MB / 382.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe 2>&1)