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.02855/0.02855, allocations: 5.385 MB / 20.65 MB, free: 1.633 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.0006992/0.0006993, allocations: 95.73 kB / 22.65 MB, free: 404 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 179.3 kB / 24.74 MB, free: 1.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 223.3 MB / 250 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008795/0.008795, allocations: 2.313 MB / 304.6 MB, free: 3.41 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0004253/0.0004253, allocations: 12 kB / 368.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1065, allocations: 52.2 MB / 421.1 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704): time 0.2097/0.3162, allocations: 6.268 MB / 427.4 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005682/0.3219, allocations: 3.048 MB / 430.4 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009326/0.3229, allocations: 23.22 kB / 430.4 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001251/0.3242, allocations: 420 kB / 430.9 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002207/0.3264, allocations: 0.7509 MB / 431.6 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001665/0.3281, allocations: 489.6 kB / 432.1 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.3297, allocations: 1.288 MB / 433.4 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002243/0.3319, allocations: 1.402 MB / 434.8 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007319/0.3327, allocations: 452.2 kB / 435.2 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007273/0.3334, allocations: 0.6159 MB / 435.8 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.3335, allocations: 57.44 kB / 435.9 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000952/0.3345, allocations: 349.2 kB / 436.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001871/0.3347, allocations: 200.4 kB / 436.4 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005245/0.3352, allocations: 0.5568 MB / 437 MB, free: 34.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00186/0.3371, allocations: 1.622 MB / 438.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3371, allocations: 3.094 kB / 438.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3371, allocations: 0 / 438.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.219e-05/0.3372, allocations: 1.5 kB / 438.6 MB, free: 34.11 MB / 350.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.003977/0.3411, allocations: 1.543 MB / 440.1 MB, free: 33.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.3412, allocations: 9.406 kB / 440.2 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002244/0.3435, allocations: 375.8 kB / 440.5 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001692/0.3452, allocations: 0.7732 MB / 441.3 MB, free: 32.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.944e-05/0.3453, allocations: 78.66 kB / 441.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.3454, allocations: 104.6 kB / 441.5 MB, free: 32.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002172/0.3476, allocations: 1.18 MB / 442.7 MB, free: 32.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.896e-05/0.3476, allocations: 4 kB / 442.7 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.3478, allocations: 45.56 kB / 442.7 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.184e-05/0.3478, allocations: 25.44 kB / 442.7 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001963/0.3498, allocations: 1.046 MB / 443.8 MB, free: 32.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006017/0.3558, allocations: 4.412 MB / 448.2 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00256/0.3584, allocations: 1.779 MB / 450 MB, free: 28.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006928/0.3591, allocations: 372 kB / 450.3 MB, free: 28.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001347/0.3593, allocations: 179.2 kB / 450.5 MB, free: 28.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000853/0.3601, allocations: 0.5543 MB / 451.1 MB, free: 28.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.795e-06/0.3601, allocations: 0 / 451.1 MB, free: 28.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.005941/0.3661, allocations: 1.75 MB / 452.8 MB, free: 27.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.3662, allocations: 285.1 kB / 453.1 MB, free: 27.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007908/0.367, allocations: 0.5507 MB / 453.6 MB, free: 26.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.694e-05/0.3671, allocations: 47.42 kB / 453.7 MB, free: 26.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003667/0.3675, allocations: 490.4 kB / 454.2 MB, free: 26.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002166/0.3677, allocations: 262.8 kB / 454.4 MB, free: 26.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.3679, allocations: 96.28 kB / 454.5 MB, free: 26.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.368, allocations: 382.4 kB / 454.9 MB, free: 25.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006936/0.3687, allocations: 326.7 kB / 455.2 MB, free: 25.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000789/0.3695, allocations: 0.5702 MB / 455.8 MB, free: 25.35 MB / 350.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.01676/0.3863, allocations: 3.702 MB / 459.5 MB, free: 24.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.407e-05/0.3863, allocations: 6.969 kB / 459.5 MB, free: 24.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002545/0.3889, allocations: 1.207 MB / 460.7 MB, free: 23.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.451e-05/0.389, allocations: 92.61 kB / 460.8 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.389, allocations: 6.312 kB / 460.8 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004578/0.3895, allocations: 95.42 kB / 460.9 MB, free: 23.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.3905, allocations: 260.1 kB / 461.1 MB, free: 23.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.3918, allocations: 1.475 MB / 462.6 MB, free: 21.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.3928, allocations: 111.9 kB / 462.7 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-05/0.3929, allocations: 54.44 kB / 462.8 MB, free: 21.85 MB / 350.1 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.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.0006188/0.3936, allocations: 364.7 kB / 463.1 MB, free: 21.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.3937, allocations: 76.81 kB / 463.2 MB, free: 21.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002325/0.396, allocations: 1.273 MB / 464.5 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.3961, allocations: 10.09 kB / 464.5 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3961, allocations: 2.938 kB / 464.5 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.3961, allocations: 6.938 kB / 464.5 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005997/0.4021, allocations: 2.588 MB / 467.1 MB, free: 19.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.4021, allocations: 0 / 467.1 MB, free: 19.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005595/0.4027, allocations: 136.5 kB / 467.2 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007382/0.4034, allocations: 340.1 kB / 467.6 MB, free: 19.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.51e-05/0.4035, allocations: 31.19 kB / 467.6 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/0.4047, allocations: 0.9005 MB / 468.5 MB, free: 19.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4047, allocations: 6.297 kB / 468.5 MB, free: 19.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005635/0.4104, allocations: 1.956 MB / 470.4 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007094/0.4111, allocations: 237.1 kB / 470.7 MB, free: 18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001527/0.4113, allocations: 29.06 kB / 470.7 MB, free: 17.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006886/0.412, allocations: 60.42 kB / 470.8 MB, free: 17.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.4122, allocations: 61.28 kB / 470.8 MB, free: 17.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.212e-05/0.4122, allocations: 35.03 kB / 470.9 MB, free: 17.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006433/0.4129, allocations: 396.7 kB / 471.2 MB, free: 17.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4129, allocations: 0 / 471.2 MB, free: 17.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001455/0.4144, allocations: 342 kB / 471.6 MB, free: 17.69 MB / 350.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.0008323/0.4152, allocations: 359.9 kB / 471.9 MB, free: 17.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002363/0.4176, allocations: 1.166 MB / 473.1 MB, free: 16.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.4176, allocations: 4.125 kB / 473.1 MB, free: 16.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.4187, allocations: 0.6611 MB / 473.8 MB, free: 16.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009669/0.4196, allocations: 138.4 kB / 473.9 MB, free: 16.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003918/0.4236, allocations: 2.342 MB / 476.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006088/0.4242, allocations: 1.013 MB / 477.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007042/0.4249, allocations: 129.8 kB / 477.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002697/0.4252, allocations: 85.27 kB / 477.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4252, allocations: 3.938 kB / 477.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of Templates: time 0.02535/0.4506, allocations: 12.03 MB / 489.5 MB, free: 11.47 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: