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.02954/0.02954, allocations: 5.389 MB / 21.69 MB, free: 1.375 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.00108/0.00108, allocations: 112.9 kB / 23.7 MB, free: 0.9258 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.001334/0.001334, allocations: 200 kB / 25.82 MB, free: 4.648 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.298/1.298, allocations: 222.9 MB / 250.7 MB, free: 8.426 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008808/0.008808, allocations: 2.323 MB / 304.4 MB, free: 6.492 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 95.84 kB / 420.3 MB, free: 22.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08858/0.09026, allocations: 51.2 MB / 471.5 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704): time 0.007693/0.09799, allocations: 6.776 MB / 478.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00539/0.1034, allocations: 3.131 MB / 481.4 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006759/0.1041, allocations: 20 kB / 481.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002447/0.1066, allocations: 1.103 MB / 482.5 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001771/0.1084, allocations: 0.8467 MB / 483.4 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001488/0.1099, allocations: 0.5354 MB / 483.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001394/0.1113, allocations: 1.394 MB / 485.3 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001331/0.1126, allocations: 1.021 MB / 486.3 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006075/0.1132, allocations: 0.5527 MB / 486.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008132/0.114, allocations: 0.7198 MB / 487.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001841/0.1142, allocations: 140 kB / 487.7 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007946/0.115, allocations: 439.7 kB / 488.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.1153, allocations: 291 kB / 488.5 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005163/0.1158, allocations: 0.6298 MB / 489.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001633/0.1174, allocations: 1.756 MB / 490.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1174, allocations: 0 / 490.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1175, allocations: 0 / 490.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.1175, allocations: 0 / 490.8 MB, free: 15.86 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.003787/0.1213, allocations: 1.771 MB / 492.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.1213, allocations: 8.031 kB / 492.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001998/0.1233, allocations: 367.2 kB / 493 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001501/0.1248, allocations: 0.7678 MB / 493.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.386e-05/0.1249, allocations: 82.06 kB / 493.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/0.1251, allocations: 104 kB / 493.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001965/0.127, allocations: 1.179 MB / 495.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.616e-05/0.1271, allocations: 3.906 kB / 495.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.1272, allocations: 47.98 kB / 495.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.889e-05/0.1272, allocations: 28 kB / 495.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002004/0.1292, allocations: 1.038 MB / 496.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00569/0.1349, allocations: 4.353 MB / 0.4888 GB, free: 5.742 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002688/0.1376, allocations: 1.782 MB / 0.4906 GB, free: 3.754 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000695/0.1383, allocations: 371.3 kB / 0.4909 GB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001457/0.1385, allocations: 170.8 kB / 0.4911 GB, free: 3.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008678/0.1394, allocations: 0.5514 MB / 0.4916 GB, free: 2.586 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 3.497e-06/0.1394, allocations: 0 / 0.4916 GB, free: 2.586 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.005481/0.1449, allocations: 1.702 MB / 0.4933 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.145, allocations: 289.6 kB / 0.4936 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000623/0.1456, allocations: 0.5535 MB / 0.4941 GB, free: 15.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.502e-05/0.1457, allocations: 45.7 kB / 0.4942 GB, free: 15.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000312/0.146, allocations: 490.6 kB / 0.4946 GB, free: 15.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001933/0.1462, allocations: 252.4 kB / 0.4949 GB, free: 15.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002933/0.1465, allocations: 218.7 kB / 0.4951 GB, free: 14.92 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1467, allocations: 382.8 kB / 0.4954 GB, free: 14.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006833/0.1474, allocations: 326.4 kB / 0.4958 GB, free: 14.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008192/0.1482, 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.01642/0.1646, allocations: 3.631 MB / 0.4999 GB, free: 9.766 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/0.1647, allocations: 4 kB / 0.4999 GB, free: 9.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00249/0.1671, allocations: 1.209 MB / 0.501 GB, free: 8.523 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.915e-05/0.1672, allocations: 93.09 kB / 0.5011 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.1672, allocations: 4 kB / 0.5011 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004215/0.1677, allocations: 89.03 kB / 0.5012 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/0.1687, allocations: 255.5 kB / 0.5015 GB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001494/0.1702, allocations: 1.578 MB / 0.503 GB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008628/0.1711, allocations: 119 kB / 0.5031 GB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.983e-05/0.1712, allocations: 55.95 kB / 0.5032 GB, free: 6.18 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.000546/0.1718, allocations: 369.3 kB / 0.5035 GB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.1719, allocations: 75.16 kB / 0.5036 GB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002578/0.1745, allocations: 1.257 MB / 0.5048 GB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.1745, allocations: 12 kB / 0.5048 GB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.544e-06/0.1745, allocations: 0 / 0.5048 GB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.1745, allocations: 3.984 kB / 0.5048 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006138/0.1807, allocations: 2.543 MB / 0.5073 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.1807, allocations: 0 / 0.5073 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005474/0.1812, allocations: 135.8 kB / 0.5074 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007435/0.182, allocations: 330.3 kB / 0.5078 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.514e-05/0.1821, allocations: 35.91 kB / 0.5078 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001205/0.1833, allocations: 0.8974 MB / 0.5087 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.1833, allocations: 0 / 0.5087 GB, free: 364 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2045/0.3878, allocations: 1.917 MB / 0.5105 GB, free: 46.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003886/0.3882, allocations: 245.8 kB / 0.5108 GB, free: 46.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.3883, allocations: 24.33 kB / 0.5108 GB, free: 46.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006281/0.389, allocations: 52.39 kB / 0.5109 GB, free: 46.44 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001408/0.3891, allocations: 58.8 kB / 0.5109 GB, free: 46.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.017e-05/0.3892, allocations: 40.33 kB / 0.5109 GB, free: 46.44 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004858/0.3897, allocations: 392.3 kB / 0.5113 GB, free: 46.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3897, allocations: 0 / 0.5113 GB, free: 46.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009736/0.3907, allocations: 343 kB / 0.5117 GB, free: 46.35 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.0006613/0.3913, allocations: 347.6 kB / 0.512 GB, free: 46.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002088/0.3934, allocations: 1.164 MB / 0.5131 GB, free: 45.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3935, allocations: 3.062 kB / 0.5131 GB, free: 45.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.3945, allocations: 0.6605 MB / 0.5138 GB, free: 45.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007544/0.3952, allocations: 146.9 kB / 0.5139 GB, free: 45.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002959/0.3982, allocations: 1.804 MB / 0.5157 GB, free: 44.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000472/0.3987, allocations: 1.017 MB / 0.5167 GB, free: 43.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002813/0.399, allocations: 91.64 kB / 0.5167 GB, free: 43.91 MB / 382.1 MB Notification: Performance of SimCode: time 1.272e-06/0.399, allocations: 0 / 0.5167 GB, free: 43.91 MB / 382.1 MB Notification: Performance of Templates: time 0.02116/0.4201, allocations: 17.32 MB / 0.5337 GB, free: 36.56 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)