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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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 PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 171.4 kB / 7.641 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 221.5 MB / 229.6 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008598/0.0008599, allocations: 105.1 kB / 280.5 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02327/0.02327, allocations: 5.288 MB / 336.5 MB, free: 9.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008715/0.008716, allocations: 2.292 MB / 390.8 MB, free: 3.539 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 1.873e-05/1.876e-05, allocations: 0 / 450 MB, free: 48.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3134, allocations: 52.19 MB / 0.4904 GB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.143/0.4565, allocations: 95.64 MB / 0.5838 GB, free: 1.059 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/0.4567, allocations: 67.97 kB / 0.5839 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1008/0.5576, allocations: 35.43 MB / 0.6185 GB, free: 13.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5576, allocations: 0 / 0.6185 GB, free: 13.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.905e-05/0.5577, allocations: 23.98 kB / 0.6185 GB, free: 13.21 MB / 410.7 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.004064/0.5618, allocations: 1.33 MB / 0.6198 GB, free: 11.81 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.62e-05/0.5618, allocations: 12.03 kB / 0.6198 GB, free: 11.8 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001924/0.5638, allocations: 298.4 kB / 0.6201 GB, free: 11.51 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001377/0.5652, allocations: 0.5842 MB / 0.6207 GB, free: 10.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.5653, allocations: 40 kB / 0.6207 GB, free: 10.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003035/0.5656, allocations: 67.95 kB / 0.6208 GB, free: 10.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002145/0.5678, allocations: 0.9374 MB / 0.6217 GB, free: 9.836 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002288/0.5701, allocations: 0.9647 MB / 0.6226 GB, free: 8.816 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.539e-05/0.5701, allocations: 0 / 0.6226 GB, free: 8.816 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.5702, allocations: 7.984 kB / 0.6226 GB, free: 8.809 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.569e-05/0.5703, allocations: 28 kB / 0.6227 GB, free: 8.781 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008226/0.5785, allocations: 4.359 MB / 0.6269 GB, free: 4.234 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002538/0.5811, allocations: 1.744 MB / 0.6286 GB, free: 2.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005776/0.5817, allocations: 312.2 kB / 0.6289 GB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002018/0.5819, allocations: 170.8 kB / 0.6291 GB, free: 1.738 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007944/0.5827, allocations: 0.5135 MB / 0.6296 GB, free: 1.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 3.176e-06/0.5828, allocations: 4 kB / 0.6296 GB, free: 1.176 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.004336/0.5871, allocations: 1.096 MB / 0.6307 GB, free: 68 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001786/0.5873, allocations: 307.5 kB / 0.631 GB, free: 15.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009085/0.5882, allocations: 494.1 kB / 0.6314 GB, free: 15.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.151e-05/0.5883, allocations: 33.7 kB / 0.6315 GB, free: 15.17 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005291/0.5889, allocations: 490.6 kB / 0.6319 GB, free: 14.68 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003164/0.5892, allocations: 248.4 kB / 0.6322 GB, free: 14.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.003e-05/0.5893, allocations: 4 kB / 0.6322 GB, free: 14.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002332/0.5895, allocations: 382.8 kB / 0.6325 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005738/0.5901, allocations: 282.5 kB / 0.6328 GB, free: 13.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007664/0.5909, allocations: 0.5082 MB / 0.6333 GB, free: 13.17 MB / 426.7 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.01391/0.6048, allocations: 2.52 MB / 0.6358 GB, free: 10.62 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.364e-05/0.6049, allocations: 0 / 0.6358 GB, free: 10.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003013/0.6079, allocations: 1.094 MB / 0.6368 GB, free: 9.523 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.983e-05/0.608, allocations: 93.09 kB / 0.6369 GB, free: 9.414 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.757e-05/0.608, allocations: 12.06 kB / 0.6369 GB, free: 9.402 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005015/0.6085, allocations: 92.72 kB / 0.637 GB, free: 9.309 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/0.6097, allocations: 263.5 kB / 0.6373 GB, free: 9.051 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/0.6115, allocations: 1.498 MB / 0.6387 GB, free: 7.434 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/0.6126, allocations: 87.05 kB / 0.6388 GB, free: 7.348 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001481/0.6128, allocations: 55.95 kB / 0.6389 GB, free: 7.293 MB / 426.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 27 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition4,writeCSV.sampleTrigger,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004431/0.6133, allocations: 251.3 kB / 0.6391 GB, free: 7.023 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003574/0.6136, allocations: 75.16 kB / 0.6392 GB, free: 6.949 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004809/0.6184, allocations: 1.356 MB / 0.6405 GB, free: 5.574 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.6185, allocations: 12 kB / 0.6405 GB, free: 5.562 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.6185, allocations: 0 / 0.6405 GB, free: 5.562 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.6185, allocations: 7.922 kB / 0.6405 GB, free: 5.555 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003871/0.6224, allocations: 2.106 MB / 0.6426 GB, free: 3.391 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.6224, allocations: 4 kB / 0.6426 GB, free: 3.387 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006119/0.623, allocations: 135.8 kB / 0.6427 GB, free: 3.254 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002355/0.6254, allocations: 0.5333 MB / 0.6432 GB, free: 2.711 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.691e-05/0.6255, allocations: 31.95 kB / 0.6433 GB, free: 2.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009274/0.6264, allocations: 0.8606 MB / 0.6441 GB, free: 1.793 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.6265, allocations: 0 / 0.6441 GB, free: 1.793 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002679/0.6291, allocations: 1.455 MB / 0.6455 GB, free: 308 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005649/0.6297, allocations: 255.8 kB / 0.6458 GB, free: 32 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002086/0.6299, allocations: 16.06 kB / 0.6458 GB, free: 16 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.236/0.866, allocations: 31.09 kB / 0.6458 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002602/0.8663, allocations: 56.58 kB / 0.6459 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/0.8664, allocations: 40.67 kB / 0.6459 GB, free: 113.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005343/0.867, allocations: 383.1 kB / 0.6463 GB, free: 113.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.867, allocations: 0 / 0.6463 GB, free: 113.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001339/0.8683, allocations: 353.5 kB / 0.6466 GB, free: 113.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y,integrator.y) * 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008242/0.8691, allocations: 409.2 kB / 0.647 GB, free: 113.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001715/0.8709, allocations: 1.035 MB / 0.648 GB, free: 113.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.8709, allocations: 0 / 0.648 GB, free: 113.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007164/0.8716, allocations: 0.613 MB / 0.6486 GB, free: 113.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000632/0.8722, allocations: 95.83 kB / 0.6487 GB, free: 113.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002341/0.8746, allocations: 1.235 MB / 0.6499 GB, free: 112.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005468/0.8752, allocations: 1.04 MB / 0.6509 GB, free: 112.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005098/0.8757, allocations: 111.1 kB / 0.651 GB, free: 112 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002484/0.8759, allocations: 83.66 kB / 0.6511 GB, free: 112 MB / 426.7 MB Notification: Performance of SimCode: time 4.21e-07/0.8759, allocations: 0 / 0.6511 GB, free: 112 MB / 426.7 MB Notification: Performance of Templates: time 0.02104/0.897, allocations: 11.56 MB / 0.6624 GB, free: 111.4 MB / 426.7 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)