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.05802/0.05803, allocations: 5.384 MB / 20.65 MB, free: 1.664 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.0008243/0.0008244, allocations: 94.72 kB / 22.64 MB, free: 436 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.001162/0.001163, allocations: 181.3 kB / 24.74 MB, free: 1.832 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.49/1.49, allocations: 223.3 MB / 250 MB, free: 13.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01069/0.01069, allocations: 2.312 MB / 304.6 MB, free: 3.809 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0004014/0.0004015, allocations: 19.98 kB / 368.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1007, allocations: 52.21 MB / 421.1 MB, free: 5.895 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629): time 0.2021/0.3028, allocations: 6.251 MB / 427.4 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005506/0.3084, allocations: 3.06 MB / 430.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007269/0.3091, allocations: 20.47 kB / 430.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00105/0.3102, allocations: 420.1 kB / 430.9 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001826/0.312, allocations: 0.7528 MB / 431.6 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001552/0.3136, allocations: 481.5 kB / 432.1 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001227/0.3148, allocations: 1.288 MB / 433.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002186/0.317, allocations: 1.4 MB / 434.8 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006751/0.3177, allocations: 462 kB / 435.2 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006854/0.3184, allocations: 0.6105 MB / 435.8 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.3185, allocations: 58.06 kB / 435.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008806/0.3194, allocations: 345.5 kB / 436.2 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.3196, allocations: 205.8 kB / 436.4 MB, free: 34.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004262/0.32, allocations: 0.554 MB / 437 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001421/0.3214, allocations: 1.623 MB / 438.6 MB, free: 33.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3215, allocations: 4.266 kB / 438.6 MB, free: 33.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3215, allocations: 0 / 438.6 MB, free: 33.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.139e-05/0.3215, allocations: 0 / 438.6 MB, free: 33.85 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.003589/0.3251, allocations: 1.549 MB / 440.2 MB, free: 33.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.3251, allocations: 9.562 kB / 440.2 MB, free: 33.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002041/0.3272, allocations: 370.4 kB / 440.5 MB, free: 32.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/0.3287, allocations: 0.7665 MB / 441.3 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.43e-05/0.3288, allocations: 83.44 kB / 441.4 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001699/0.329, allocations: 107.9 kB / 441.5 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002032/0.331, allocations: 1.181 MB / 442.7 MB, free: 32.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.368e-05/0.3311, allocations: 4 kB / 442.7 MB, free: 32.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.924e-05/0.3312, allocations: 47.06 kB / 442.7 MB, free: 32.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.001e-05/0.3312, allocations: 23.16 kB / 442.7 MB, free: 32.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.3332, allocations: 1.042 MB / 443.8 MB, free: 32.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006793/0.34, allocations: 4.41 MB / 448.2 MB, free: 30.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002577/0.3427, allocations: 1.786 MB / 450 MB, free: 28.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006787/0.3434, allocations: 367 kB / 450.3 MB, free: 28.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001225/0.3435, allocations: 170.5 kB / 450.5 MB, free: 28.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000845/0.3444, allocations: 0.5626 MB / 451.1 MB, free: 28.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 3.116e-06/0.3444, allocations: 3.938 kB / 451.1 MB, free: 28.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.005718/0.3501, allocations: 1.738 MB / 452.8 MB, free: 27.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.362e-05/0.3502, allocations: 287.3 kB / 453.1 MB, free: 27.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006805/0.3509, allocations: 0.5567 MB / 453.6 MB, free: 26.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.073e-05/0.351, allocations: 43.66 kB / 453.7 MB, free: 26.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002751/0.3513, allocations: 489.7 kB / 454.2 MB, free: 26.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/0.3514, allocations: 261.1 kB / 454.4 MB, free: 26.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.3516, allocations: 95.47 kB / 454.5 MB, free: 26.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.786e-05/0.3517, allocations: 379.1 kB / 454.9 MB, free: 25.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006907/0.3524, allocations: 330 kB / 455.2 MB, free: 25.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007692/0.3532, allocations: 0.5685 MB / 455.8 MB, free: 25.43 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.01722/0.3704, allocations: 3.708 MB / 459.5 MB, free: 24.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.611e-05/0.3704, allocations: 4 kB / 459.5 MB, free: 24.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002423/0.3729, allocations: 1.216 MB / 460.7 MB, free: 23.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.002e-05/0.3729, allocations: 86.52 kB / 460.8 MB, free: 23.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.373, allocations: 6.562 kB / 460.8 MB, free: 23.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004427/0.3734, allocations: 90.88 kB / 460.9 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.3745, allocations: 262.3 kB / 461.1 MB, free: 23.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.3758, allocations: 1.477 MB / 462.6 MB, free: 22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.3768, allocations: 113.9 kB / 462.7 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.609e-05/0.3769, allocations: 52.16 kB / 462.8 MB, free: 21.93 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.0006718/0.3776, allocations: 370.5 kB / 463.1 MB, free: 21.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.3778, allocations: 74.34 kB / 463.2 MB, free: 21.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002414/0.3802, allocations: 1.271 MB / 464.5 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.3802, allocations: 13.16 kB / 464.5 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3802, allocations: 1.188 kB / 464.5 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.3802, allocations: 6.891 kB / 464.5 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006155/0.3864, allocations: 2.587 MB / 467.1 MB, free: 19.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.3864, allocations: 0 / 467.1 MB, free: 19.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000588/0.387, allocations: 137.2 kB / 467.2 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007728/0.3878, allocations: 338.6 kB / 467.5 MB, free: 19.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.222e-05/0.3879, allocations: 33.89 kB / 467.6 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/0.3891, allocations: 0.9072 MB / 468.5 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3891, allocations: 3.375 kB / 468.5 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005571/0.3947, allocations: 1.955 MB / 470.4 MB, free: 18.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004939/0.3952, allocations: 239.3 kB / 470.7 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/0.3954, allocations: 26.22 kB / 470.7 MB, free: 18.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006627/0.396, allocations: 65.72 kB / 470.8 MB, free: 18.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.3962, allocations: 57.39 kB / 470.8 MB, free: 18.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.315e-05/0.3963, allocations: 40.05 kB / 470.9 MB, free: 18.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005389/0.3968, allocations: 387.7 kB / 471.2 MB, free: 17.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3968, allocations: 1.188 kB / 471.2 MB, free: 17.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001213/0.398, allocations: 344.9 kB / 471.6 MB, free: 17.77 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.0007742/0.3988, allocations: 360.7 kB / 471.9 MB, free: 17.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002343/0.4012, allocations: 1.162 MB / 473.1 MB, free: 17.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.4012, allocations: 4.125 kB / 473.1 MB, free: 17.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.4023, allocations: 0.6617 MB / 473.8 MB, free: 16.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009425/0.4032, allocations: 138.1 kB / 473.9 MB, free: 16.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003521/0.4068, allocations: 2.342 MB / 476.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005166/0.4073, allocations: 1.014 MB / 477.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006241/0.4079, allocations: 128.5 kB / 477.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002522/0.4082, allocations: 90.02 kB / 477.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4082, allocations: 0 / 477.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of Templates: time 0.02769/0.4359, allocations: 12.03 MB / 489.5 MB, free: 11.69 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: