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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.0009586/0.0009584, allocations: 169.3 kB / 7.64 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.468/1.468, allocations: 221.5 MB / 229.6 MB, free: 7.562 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.0008788/0.0008788, allocations: 93.94 kB / 280.5 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02348/0.02348, allocations: 5.295 MB / 336.5 MB, free: 9.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008899/0.008899, allocations: 2.286 MB / 390.8 MB, free: 3.551 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 1.529e-05/1.532e-05, allocations: 4 kB / 450 MB, free: 48.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2675, allocations: 52.19 MB / 0.4904 GB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.123/0.3906, allocations: 95.64 MB / 0.5838 GB, free: 1.078 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001946/0.3908, allocations: 68.5 kB / 0.5839 GB, free: 1.012 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09642/0.4873, allocations: 35.43 MB / 0.6185 GB, free: 13.26 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.4873, allocations: 0 / 0.6185 GB, free: 13.26 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.642e-05/0.4874, allocations: 20 kB / 0.6185 GB, free: 13.24 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.003334/0.4907, allocations: 1.334 MB / 0.6198 GB, free: 11.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.4908, allocations: 12.02 kB / 0.6198 GB, free: 11.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001757/0.4925, allocations: 298.3 kB / 0.6201 GB, free: 11.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001146/0.4937, allocations: 0.5882 MB / 0.6207 GB, free: 10.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.198e-05/0.4938, allocations: 40 kB / 0.6207 GB, free: 10.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002195/0.494, allocations: 63.95 kB / 0.6208 GB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001966/0.496, allocations: 0.9413 MB / 0.6217 GB, free: 9.859 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002002/0.498, allocations: 0.9686 MB / 0.6226 GB, free: 8.836 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.234e-05/0.498, allocations: 0 / 0.6226 GB, free: 8.836 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-05/0.4982, allocations: 4 kB / 0.6226 GB, free: 8.832 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.175e-05/0.4982, allocations: 24 kB / 0.6227 GB, free: 8.809 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007471/0.5057, allocations: 4.359 MB / 0.6269 GB, free: 4.262 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002294/0.508, allocations: 1.756 MB / 0.6286 GB, free: 2.266 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005547/0.5086, allocations: 304.2 kB / 0.6289 GB, free: 1.965 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001807/0.5088, allocations: 178.8 kB / 0.6291 GB, free: 1.754 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007225/0.5095, allocations: 0.5096 MB / 0.6296 GB, free: 1.199 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 4.208e-06/0.5095, allocations: 0 / 0.6296 GB, free: 1.199 MB / 410.7 MB Notification: Performance of matching and sorting (n=80): time 0.004182/0.5137, allocations: 1.1 MB / 0.6307 GB, free: 88 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/0.5139, allocations: 307.5 kB / 0.631 GB, free: 15.72 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007442/0.5146, allocations: 498.1 kB / 0.6314 GB, free: 15.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.366e-05/0.5147, allocations: 29.7 kB / 0.6315 GB, free: 15.19 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003892/0.5151, allocations: 490.6 kB / 0.6319 GB, free: 14.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000234/0.5153, allocations: 244.4 kB / 0.6322 GB, free: 14.46 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.015e-05/0.5154, allocations: 4 kB / 0.6322 GB, free: 14.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.5156, allocations: 382.8 kB / 0.6325 GB, free: 14.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004737/0.5161, allocations: 286.5 kB / 0.6328 GB, free: 13.79 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006617/0.5167, allocations: 0.5082 MB / 0.6333 GB, free: 13.19 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.0135/0.5303, allocations: 2.524 MB / 0.6358 GB, free: 10.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.63e-05/0.5303, allocations: 4 kB / 0.6358 GB, free: 10.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002975/0.5333, allocations: 1.094 MB / 0.6368 GB, free: 9.535 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.04e-05/0.5334, allocations: 85.11 kB / 0.6369 GB, free: 9.434 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/0.5334, allocations: 12.06 kB / 0.6369 GB, free: 9.422 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005037/0.5339, allocations: 96.77 kB / 0.637 GB, free: 9.324 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.535, allocations: 251.6 kB / 0.6373 GB, free: 9.078 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001612/0.5367, allocations: 1.502 MB / 0.6387 GB, free: 7.457 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009803/0.5377, allocations: 87.05 kB / 0.6388 GB, free: 7.371 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/0.5378, allocations: 51.95 kB / 0.6389 GB, free: 7.32 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.0003594/0.5382, allocations: 257.7 kB / 0.6391 GB, free: 7.047 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/0.5384, allocations: 75.16 kB / 0.6392 GB, free: 6.973 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004526/0.5429, allocations: 1.348 MB / 0.6405 GB, free: 5.605 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.543, allocations: 15.94 kB / 0.6405 GB, free: 5.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.543, allocations: 4 kB / 0.6405 GB, free: 5.586 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.543, allocations: 7.922 kB / 0.6405 GB, free: 5.578 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003756/0.5467, allocations: 2.11 MB / 0.6426 GB, free: 3.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.5468, allocations: 3.984 kB / 0.6426 GB, free: 3.406 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006056/0.5474, allocations: 135.8 kB / 0.6427 GB, free: 3.273 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002321/0.5497, allocations: 0.5333 MB / 0.6432 GB, free: 2.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.268e-05/0.5498, allocations: 27.97 kB / 0.6433 GB, free: 2.703 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008836/0.5507, allocations: 0.8645 MB / 0.6441 GB, free: 1.812 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.5507, allocations: 3.984 kB / 0.6441 GB, free: 1.809 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002535/0.5533, allocations: 1.455 MB / 0.6455 GB, free: 324 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004584/0.5537, allocations: 251.8 kB / 0.6458 GB, free: 52 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002013/0.554, allocations: 16 kB / 0.6458 GB, free: 36 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006834/0.5546, allocations: 35.97 kB / 0.6458 GB, free: 0 / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2346/0.7892, allocations: 53.62 kB / 0.6459 GB, free: 113.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001551/0.7894, allocations: 36.23 kB / 0.6459 GB, free: 113.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000622/0.7901, allocations: 387.3 kB / 0.6463 GB, free: 113.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7901, allocations: 0 / 0.6463 GB, free: 113.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001459/0.7915, allocations: 346.8 kB / 0.6466 GB, free: 113.6 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.0009155/0.7925, allocations: 412.1 kB / 0.647 GB, free: 113.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001801/0.7943, allocations: 1.034 MB / 0.648 GB, free: 113.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.7943, allocations: 0 / 0.648 GB, free: 113.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000827/0.7951, allocations: 0.6158 MB / 0.6486 GB, free: 113 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007506/0.7959, allocations: 94 kB / 0.6487 GB, free: 113 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00242/0.7983, allocations: 1.236 MB / 0.6499 GB, free: 112.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005991/0.7989, allocations: 1.035 MB / 0.6509 GB, free: 111.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005411/0.7995, allocations: 114.4 kB / 0.651 GB, free: 111.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002574/0.7997, allocations: 82.47 kB / 0.6511 GB, free: 111.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/0.7998, allocations: 1.5 kB / 0.6511 GB, free: 111.9 MB / 426.7 MB Notification: Performance of Templates: time 0.0233/0.8231, allocations: 11.55 MB / 0.6624 GB, free: 111.2 MB / 426.7 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)