Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02952/0.02951, allocations: 5.394 MB / 20.89 MB, free: 1.789 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.0009207/0.0009207, allocations: 108.1 kB / 22.89 MB, free: 100 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.001257/0.001258, allocations: 191.6 kB / 25 MB, free: 1.48 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.343/1.343, allocations: 222.9 MB / 249.9 MB, free: 14.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009707/0.009707, allocations: 2.319 MB / 303.5 MB, free: 3.832 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 100.2 kB / 367.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08691/0.0889, allocations: 51.2 MB / 418.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808): time 0.007804/0.09675, allocations: 6.767 MB / 425.1 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1982/0.2949, allocations: 3.122 MB / 428.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009724/0.2959, allocations: 19.66 kB / 428.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002481/0.2984, allocations: 1.1 MB / 429.4 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001966/0.3004, allocations: 0.8406 MB / 430.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001552/0.302, allocations: 0.5366 MB / 430.8 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001458/0.3035, allocations: 1.373 MB / 432.1 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001335/0.3048, allocations: 1.033 MB / 433.2 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005845/0.3054, allocations: 0.5543 MB / 433.7 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006596/0.3061, allocations: 0.717 MB / 434.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001573/0.3062, allocations: 142.8 kB / 434.6 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006689/0.3069, allocations: 434.4 kB / 435 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.3071, allocations: 291.1 kB / 435.3 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004195/0.3075, allocations: 0.6337 MB / 435.9 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.3087, allocations: 1.727 MB / 437.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3087, allocations: 0 / 437.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3087, allocations: 3.281 kB / 437.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.3087, allocations: 0 / 437.6 MB, free: 34.78 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.003473/0.3122, allocations: 1.764 MB / 439.4 MB, free: 33.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.3122, allocations: 9.594 kB / 439.4 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002016/0.3143, allocations: 375.2 kB / 439.8 MB, free: 33.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001346/0.3156, allocations: 0.754 MB / 440.5 MB, free: 33.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.21e-05/0.3157, allocations: 86.94 kB / 440.6 MB, free: 33.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.3158, allocations: 105.8 kB / 440.7 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.3175, allocations: 1.177 MB / 441.9 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/0.3176, allocations: 11 kB / 441.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.775e-05/0.3177, allocations: 44.47 kB / 442 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.3177, allocations: 24.31 kB / 442 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001877/0.3196, allocations: 1.038 MB / 443 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004875/0.3245, allocations: 4.411 MB / 447.4 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002505/0.327, allocations: 1.762 MB / 449.2 MB, free: 28.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006839/0.3277, allocations: 362.9 kB / 449.5 MB, free: 28.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001129/0.3278, allocations: 176.6 kB / 449.7 MB, free: 27.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008266/0.3286, allocations: 0.5551 MB / 450.3 MB, free: 27.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.345e-06/0.3287, allocations: 0 / 450.3 MB, free: 27.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.005653/0.3343, allocations: 1.704 MB / 452 MB, free: 27.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/0.3344, allocations: 281.3 kB / 452.2 MB, free: 26.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006633/0.3351, allocations: 0.5526 MB / 452.8 MB, free: 26.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.3352, allocations: 40.8 kB / 452.8 MB, free: 26.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002366/0.3354, allocations: 494.3 kB / 453.3 MB, free: 26.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.3356, allocations: 257.2 kB / 453.6 MB, free: 25.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000264/0.3358, allocations: 211.8 kB / 453.8 MB, free: 25.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.728e-05/0.3359, allocations: 385.8 kB / 454.2 MB, free: 25.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006741/0.3366, allocations: 327.7 kB / 454.5 MB, free: 25.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007468/0.3374, allocations: 0.567 MB / 455 MB, free: 24.88 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.01658/0.354, allocations: 3.634 MB / 458.7 MB, free: 23.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.019e-05/0.354, allocations: 3.531 kB / 458.7 MB, free: 23.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002406/0.3564, allocations: 1.209 MB / 459.9 MB, free: 23.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.582e-05/0.3565, allocations: 92.92 kB / 460 MB, free: 22.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.3565, allocations: 5.906 kB / 460 MB, free: 22.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004484/0.3569, allocations: 92.02 kB / 460.1 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.358, allocations: 256.1 kB / 460.3 MB, free: 22.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/0.3592, allocations: 1.577 MB / 461.9 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009265/0.3601, allocations: 117.1 kB / 462 MB, free: 21.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.598e-05/0.3602, allocations: 58.75 kB / 462.1 MB, free: 21.3 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.0004938/0.3607, allocations: 368.2 kB / 462.4 MB, free: 20.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.3609, allocations: 77.19 kB / 462.5 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002367/0.3633, allocations: 1.26 MB / 463.8 MB, free: 20.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.3633, allocations: 9.281 kB / 463.8 MB, free: 20.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3633, allocations: 0 / 463.8 MB, free: 20.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.3633, allocations: 6.984 kB / 463.8 MB, free: 20.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00607/0.3694, allocations: 2.559 MB / 466.3 MB, free: 19.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.8e-06/0.3695, allocations: 0 / 466.3 MB, free: 19.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005649/0.37, allocations: 137.3 kB / 466.5 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007421/0.3708, allocations: 335.9 kB / 466.8 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.498e-05/0.3709, allocations: 31.05 kB / 466.8 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/0.372, allocations: 0.8882 MB / 467.7 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3721, allocations: 4.062 kB / 467.7 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005588/0.3777, allocations: 1.919 MB / 469.7 MB, free: 17.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004097/0.3781, allocations: 236 kB / 469.9 MB, free: 17.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001969/0.3783, allocations: 32.91 kB / 469.9 MB, free: 17.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007266/0.379, allocations: 48.36 kB / 470 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.3792, allocations: 59.27 kB / 470 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.761e-05/0.3793, allocations: 40.14 kB / 470.1 MB, free: 17.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005789/0.3799, allocations: 392.5 kB / 470.4 MB, free: 17.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3799, allocations: 0 / 470.4 MB, free: 17.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001151/0.3811, allocations: 343 kB / 470.8 MB, free: 17.14 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.0007382/0.3818, allocations: 360.3 kB / 471.1 MB, free: 16.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003042/0.3849, allocations: 1.196 MB / 472.3 MB, free: 16.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.3849, allocations: 1.375 kB / 472.3 MB, free: 16.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.3861, allocations: 0.6667 MB / 473 MB, free: 16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.3871, allocations: 139.2 kB / 473.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00367/0.3908, allocations: 1.811 MB / 474.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005539/0.3914, allocations: 1.017 MB / 476 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000617/0.392, allocations: 126.7 kB / 476.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002665/0.3923, allocations: 88.41 kB / 476.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of SimCode: time 5e-07/0.3923, allocations: 0.9375 kB / 476.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of Templates: time 0.02814/0.4205, allocations: 12.78 MB / 489 MB, free: 11.17 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe 2>&1)