Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.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_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03717/0.03717, allocations: 5.398 MB / 21.28 MB, free: 1.777 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.001289/0.001289, allocations: 110.4 kB / 23.27 MB, free: 72 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.001715/0.001715, allocations: 192.1 kB / 25.37 MB, free: 1.598 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.326/1.326, allocations: 222.9 MB / 250.2 MB, free: 14.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.0087/0.0087, allocations: 2.32 MB / 303.8 MB, free: 3.715 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.002569/0.002569, allocations: 91.86 kB / 367.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09359/0.09618, allocations: 51.19 MB / 418.5 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.0073/0.1035, allocations: 6.745 MB / 425.2 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1868/0.2903, allocations: 3.081 MB / 428.3 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.2914, allocations: 18.56 kB / 428.3 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002594/0.2941, allocations: 1.016 MB / 429.3 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00212/0.2962, allocations: 0.7562 MB / 430.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001719/0.298, allocations: 497.9 kB / 430.6 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001606/0.2996, allocations: 1.376 MB / 432 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001409/0.301, allocations: 1.105 MB / 433.1 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006033/0.3016, allocations: 0.5588 MB / 433.6 MB, free: 35.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006315/0.3022, allocations: 0.7094 MB / 434.3 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001505/0.3024, allocations: 147.6 kB / 434.5 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000733/0.3031, allocations: 434.8 kB / 434.9 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001796/0.3033, allocations: 295 kB / 435.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004646/0.3038, allocations: 0.6354 MB / 435.8 MB, free: 34.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001117/0.3049, allocations: 1.344 MB / 437.2 MB, free: 34.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3049, allocations: 3.094 kB / 437.2 MB, free: 34.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.305, allocations: 0 / 437.2 MB, free: 34.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.9e-05/0.305, allocations: 0.9375 kB / 437.2 MB, free: 34.71 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.003782/0.3088, allocations: 1.77 MB / 438.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.3088, allocations: 11.97 kB / 438.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001979/0.3108, allocations: 370.7 kB / 439.3 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001447/0.3123, allocations: 0.7489 MB / 440.1 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.503e-05/0.3123, allocations: 81.47 kB / 440.1 MB, free: 33.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.3125, allocations: 105.5 kB / 440.2 MB, free: 33.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00184/0.3143, allocations: 1.184 MB / 441.4 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.97e-05/0.3144, allocations: 0 / 441.4 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.3145, allocations: 46.5 kB / 441.5 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.3145, allocations: 26.25 kB / 441.5 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/0.3164, allocations: 1.038 MB / 442.5 MB, free: 32.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005202/0.3216, allocations: 4.394 MB / 446.9 MB, free: 29.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002472/0.3241, allocations: 1.776 MB / 448.7 MB, free: 28.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000674/0.3248, allocations: 365 kB / 449.1 MB, free: 28.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001377/0.325, allocations: 172.9 kB / 449.2 MB, free: 28.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000901/0.3259, allocations: 0.5537 MB / 449.8 MB, free: 27.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 3.727e-06/0.3259, allocations: 0 / 449.8 MB, free: 27.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.005881/0.3318, allocations: 1.706 MB / 451.5 MB, free: 27.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.454e-05/0.3319, allocations: 280.8 kB / 451.8 MB, free: 26.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006108/0.3325, allocations: 0.5628 MB / 452.3 MB, free: 26.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.825e-05/0.3326, allocations: 47.3 kB / 452.4 MB, free: 26.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002769/0.3329, allocations: 489.1 kB / 452.8 MB, free: 26.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.333, allocations: 254.1 kB / 453.1 MB, free: 25.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002743/0.3333, allocations: 209.2 kB / 453.3 MB, free: 25.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.142e-05/0.3334, allocations: 383.4 kB / 453.7 MB, free: 25.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006468/0.3341, allocations: 329.5 kB / 454 MB, free: 25.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000729/0.3348, allocations: 0.5651 MB / 454.6 MB, free: 24.96 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.01787/0.3527, allocations: 3.641 MB / 458.2 MB, free: 23.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.261e-05/0.3527, allocations: 3 kB / 458.2 MB, free: 23.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002315/0.355, allocations: 1.198 MB / 459.4 MB, free: 23.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.947e-05/0.3551, allocations: 97.08 kB / 459.5 MB, free: 23.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.3551, allocations: 6.156 kB / 459.5 MB, free: 23.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004597/0.3556, allocations: 88.09 kB / 459.6 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/0.3567, allocations: 255.7 kB / 459.8 MB, free: 23.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/0.3579, allocations: 1.581 MB / 461.4 MB, free: 21.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009451/0.3588, allocations: 120.7 kB / 461.5 MB, free: 21.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8e-05/0.3589, allocations: 53.7 kB / 461.6 MB, free: 21.45 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 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.0005437/0.3595, allocations: 376.8 kB / 462 MB, free: 21.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.3596, allocations: 74.53 kB / 462 MB, free: 21.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002319/0.3619, allocations: 1.259 MB / 463.3 MB, free: 20.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.362, allocations: 6.5 kB / 463.3 MB, free: 20.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.362, allocations: 2.75 kB / 463.3 MB, free: 20.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.362, allocations: 10.75 kB / 463.3 MB, free: 20.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006071/0.3681, allocations: 2.544 MB / 465.9 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.3681, allocations: 1.5 kB / 465.9 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005742/0.3687, allocations: 137.1 kB / 466 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007195/0.3694, allocations: 334.6 kB / 466.3 MB, free: 19.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.631e-05/0.3695, allocations: 37.53 kB / 466.4 MB, free: 19.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.3706, allocations: 0.8877 MB / 467.2 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3706, allocations: 0 / 467.2 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005681/0.3763, allocations: 1.923 MB / 469.2 MB, free: 17.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004355/0.3768, allocations: 234.9 kB / 469.4 MB, free: 17.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/0.3769, allocations: 27.47 kB / 469.4 MB, free: 17.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006758/0.3776, allocations: 55.27 kB / 469.5 MB, free: 17.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.3778, allocations: 57.44 kB / 469.5 MB, free: 17.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.854e-05/0.3779, allocations: 48.03 kB / 469.6 MB, free: 17.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004663/0.3783, allocations: 388.2 kB / 470 MB, free: 17.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3783, allocations: 0 / 470 MB, free: 17.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001074/0.3794, allocations: 341.9 kB / 470.3 MB, free: 17.35 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.0007624/0.3802, allocations: 367.7 kB / 470.7 MB, free: 17.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002633/0.3828, allocations: 1.182 MB / 471.8 MB, free: 16.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3829, allocations: 8 kB / 471.8 MB, free: 16.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009808/0.3838, allocations: 0.6642 MB / 472.5 MB, free: 16.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008529/0.3847, allocations: 135.8 kB / 472.6 MB, free: 16.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003305/0.388, allocations: 2.302 MB / 474.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004218/0.3885, allocations: 1.02 MB / 476 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003156/0.3888, allocations: 91.3 kB / 476 MB, free: 14.01 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3888, allocations: 3.938 kB / 476.1 MB, free: 14 MB / 350.1 MB Notification: Performance of Templates: time 0.02399/0.4128, allocations: 17.19 MB / 493.2 MB, free: 8.008 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe 2>&1)