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/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_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/PhotoVoltaics 2.0.0/package.mo): time 0.04663/0.04663, allocations: 5.39 MB / 20.89 MB, free: 1.496 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.0119/0.0119, allocations: 96.42 kB / 22.88 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 193.2 kB / 24.99 MB, free: 292 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 249.9 MB, free: 8.512 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01942/0.01942, allocations: 2.324 MB / 303.5 MB, free: 6.535 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 95.84 kB / 367.2 MB, free: 6.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2384, allocations: 51.22 MB / 418.4 MB, free: 26.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629): time 0.006185/0.2446, allocations: 6.756 MB / 425.1 MB, free: 19.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004514/0.2492, allocations: 3.135 MB / 428.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000888/0.2501, allocations: 19.94 kB / 428.3 MB, free: 16.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00237/0.2525, allocations: 1.104 MB / 429.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002011/0.2545, allocations: 0.838 MB / 430.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001724/0.2563, allocations: 0.5368 MB / 430.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001327/0.2576, allocations: 1.371 MB / 432.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001167/0.2588, allocations: 1.04 MB / 433.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005539/0.2594, allocations: 0.5527 MB / 433.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007072/0.2601, allocations: 0.7082 MB / 434.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001754/0.2603, allocations: 148 kB / 434.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008462/0.2611, allocations: 435.7 kB / 435 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001679/0.2613, allocations: 298.9 kB / 435.3 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004303/0.2617, allocations: 0.6337 MB / 435.9 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001425/0.2632, allocations: 1.713 MB / 437.6 MB, free: 7.035 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2632, allocations: 3.984 kB / 437.6 MB, free: 7.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2632, allocations: 3.938 kB / 437.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.484e-05/0.2632, allocations: 0 / 437.7 MB, free: 7.027 MB / 302.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.003648/0.2669, allocations: 1.77 MB / 439.4 MB, free: 5.188 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.2669, allocations: 8.031 kB / 439.4 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001927/0.2688, allocations: 379.2 kB / 439.8 MB, free: 4.809 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.2703, allocations: 0.7483 MB / 440.5 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.219e-05/0.2704, allocations: 90.06 kB / 440.6 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.2705, allocations: 107.9 kB / 440.7 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001762/0.2723, allocations: 1.172 MB / 441.9 MB, free: 2.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.944e-05/0.2723, allocations: 4 kB / 441.9 MB, free: 2.586 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.905e-05/0.2724, allocations: 44 kB / 442 MB, free: 2.543 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.901e-05/0.2725, allocations: 27.98 kB / 442 MB, free: 2.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001828/0.2743, allocations: 1.038 MB / 443 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005978/0.2803, allocations: 4.4 MB / 447.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002974/0.2833, allocations: 1.772 MB / 449.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007794/0.2841, allocations: 362 kB / 449.5 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001834/0.2843, allocations: 182.8 kB / 449.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.2853, allocations: 0.5513 MB / 450.3 MB, free: 9.734 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.695e-06/0.2853, allocations: 0 / 450.3 MB, free: 9.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006108/0.2914, allocations: 1.705 MB / 452 MB, free: 7.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001832/0.2917, allocations: 277.7 kB / 452.3 MB, free: 7.648 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000846/0.2925, allocations: 0.5536 MB / 452.8 MB, free: 7.086 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.782e-05/0.2926, allocations: 45.7 kB / 452.9 MB, free: 7.035 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004222/0.293, allocations: 490.6 kB / 453.3 MB, free: 6.547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002436/0.2933, allocations: 260.4 kB / 453.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003238/0.2936, allocations: 210.7 kB / 453.8 MB, free: 6.074 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.2938, allocations: 382.8 kB / 454.2 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007447/0.2945, allocations: 326.4 kB / 454.5 MB, free: 5.375 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009342/0.2955, allocations: 0.5682 MB / 455.1 MB, free: 4.711 MB / 318.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.01735/0.3128, allocations: 3.638 MB / 458.7 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.329e-05/0.3129, allocations: 4 kB / 458.7 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002655/0.3156, allocations: 1.209 MB / 459.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.544e-05/0.3156, allocations: 89.11 kB / 460 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.3157, allocations: 8.25 kB / 460 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004422/0.3161, allocations: 84.78 kB / 460.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.3172, allocations: 259.5 kB / 460.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001596/0.3188, allocations: 1.578 MB / 461.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009263/0.3198, allocations: 119.1 kB / 462 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.183e-05/0.3199, allocations: 51.97 kB / 462.1 MB, free: 13.32 MB / 334.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.0005668/0.3204, allocations: 377.2 kB / 462.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.3206, allocations: 79.06 kB / 462.5 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002519/0.3231, allocations: 1.257 MB / 463.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.3231, allocations: 8 kB / 463.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.3231, allocations: 4 kB / 463.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.669e-06/0.3232, allocations: 3.984 kB / 463.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006241/0.3294, allocations: 2.551 MB / 466.4 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.3294, allocations: 0 / 466.4 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005662/0.33, allocations: 135.8 kB / 466.5 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007954/0.3308, allocations: 338.2 kB / 466.8 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.936e-05/0.3309, allocations: 35.97 kB / 466.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001243/0.3321, allocations: 0.8858 MB / 467.7 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3322, allocations: 0 / 467.7 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005523/0.3377, allocations: 1.927 MB / 469.7 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003273/0.338, allocations: 235.8 kB / 469.9 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.3382, allocations: 24 kB / 469.9 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006543/0.3388, allocations: 55.95 kB / 470 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.339, allocations: 60.58 kB / 470 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.16e-05/0.339, allocations: 35.97 kB / 470.1 MB, free: 5.078 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004455/0.3395, allocations: 394.8 kB / 470.4 MB, free: 4.691 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3395, allocations: 0 / 470.4 MB, free: 4.691 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009419/0.3404, allocations: 350.9 kB / 470.8 MB, free: 4.348 MB / 334.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.0006837/0.3411, allocations: 358.3 kB / 471.1 MB, free: 4.062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002507/0.3437, allocations: 1.193 MB / 472.3 MB, free: 2.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3437, allocations: 0 / 472.3 MB, free: 2.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.3447, allocations: 0.6702 MB / 473 MB, free: 2.109 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007625/0.3455, allocations: 142.3 kB / 473.1 MB, free: 1.973 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002933/0.3484, allocations: 1.79 MB / 474.9 MB, free: 156 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005309/0.349, allocations: 1.014 MB / 475.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005087/0.3495, allocations: 126.4 kB / 476.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002249/0.3497, allocations: 87.39 kB / 476.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3497, allocations: 0 / 476.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of Templates: time 0.02153/0.3712, allocations: 12.81 MB / 489 MB, free: 2.16 MB / 350.1 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)