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.02847/0.02847, allocations: 5.384 MB / 20.65 MB, free: 1.66 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.0006942/0.0006942, allocations: 95.78 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.0009039/0.000904, allocations: 177.4 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.319/1.319, allocations: 223.3 MB / 250 MB, free: 13.68 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008768/0.008768, allocations: 2.312 MB / 304.6 MB, free: 3.902 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.0004942/0.000494, allocations: 16 kB / 368.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1121, allocations: 52.21 MB / 421.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.2028/0.315, allocations: 6.26 MB / 427.4 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005998/0.321, allocations: 3.054 MB / 430.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008454/0.3219, allocations: 17.16 kB / 430.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.3232, allocations: 420 kB / 430.8 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002539/0.3258, allocations: 0.7527 MB / 431.6 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002108/0.3279, allocations: 492.3 kB / 432.1 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002265/0.3302, allocations: 1.286 MB / 433.4 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003423/0.3336, allocations: 1.398 MB / 434.8 MB, free: 34.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001008/0.3346, allocations: 455.9 kB / 435.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001386/0.336, allocations: 0.6163 MB / 435.8 MB, free: 34.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003868/0.3364, allocations: 59.94 kB / 435.9 MB, free: 34.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001394/0.3379, allocations: 347 kB / 436.2 MB, free: 34.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002861/0.3382, allocations: 196.3 kB / 436.4 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007968/0.339, allocations: 0.5612 MB / 437 MB, free: 34.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002505/0.3415, allocations: 1.621 MB / 438.6 MB, free: 34.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3415, allocations: 1.719 kB / 438.6 MB, free: 34.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3415, allocations: 0 / 438.6 MB, free: 34.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.865e-05/0.3416, allocations: 0 / 438.6 MB, free: 34.02 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.005256/0.3468, allocations: 1.553 MB / 440.1 MB, free: 33.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.3469, allocations: 9.938 kB / 440.2 MB, free: 33.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002077/0.349, allocations: 375.3 kB / 440.5 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001552/0.3505, allocations: 0.7585 MB / 441.3 MB, free: 32.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.161e-05/0.3506, allocations: 80.06 kB / 441.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002168/0.3509, allocations: 107.1 kB / 441.5 MB, free: 32.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002307/0.3532, allocations: 1.187 MB / 442.7 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.068e-05/0.3532, allocations: 0 / 442.7 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-05/0.3533, allocations: 50.44 kB / 442.7 MB, free: 32.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.3533, allocations: 26.06 kB / 442.7 MB, free: 32.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002072/0.3554, allocations: 1.039 MB / 443.8 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005795/0.3612, allocations: 4.411 MB / 448.2 MB, free: 30.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002466/0.3637, allocations: 1.784 MB / 450 MB, free: 28.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006819/0.3644, allocations: 369.5 kB / 450.3 MB, free: 28.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001199/0.3646, allocations: 178.1 kB / 450.5 MB, free: 28.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008622/0.3654, allocations: 0.5586 MB / 451.1 MB, free: 28.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 2.835e-06/0.3654, allocations: 0 / 451.1 MB, free: 28.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=79): time 0.005579/0.371, allocations: 1.751 MB / 452.8 MB, free: 27.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.251e-05/0.3711, allocations: 278.8 kB / 453.1 MB, free: 27.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006766/0.3718, allocations: 0.5533 MB / 453.6 MB, free: 27.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.852e-05/0.3719, allocations: 44.11 kB / 453.7 MB, free: 27.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002536/0.3721, allocations: 492.5 kB / 454.2 MB, free: 26.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001983/0.3723, allocations: 261.8 kB / 454.4 MB, free: 26.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.3725, allocations: 87.95 kB / 454.5 MB, free: 26.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.838e-05/0.3726, allocations: 383.6 kB / 454.9 MB, free: 26.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007179/0.3733, allocations: 325.4 kB / 455.2 MB, free: 26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007549/0.3741, allocations: 0.5755 MB / 455.8 MB, free: 25.59 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.01686/0.3909, allocations: 3.702 MB / 459.5 MB, free: 24.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.391, allocations: 3 kB / 459.5 MB, free: 24.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002406/0.3934, allocations: 1.216 MB / 460.7 MB, free: 23.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.135e-05/0.3935, allocations: 90.86 kB / 460.8 MB, free: 23.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.3935, allocations: 9.125 kB / 460.8 MB, free: 23.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000427/0.3939, allocations: 88.98 kB / 460.9 MB, free: 23.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.395, allocations: 260.2 kB / 461.1 MB, free: 23.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.3962, allocations: 1.48 MB / 462.6 MB, free: 22.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009714/0.3972, allocations: 112.8 kB / 462.7 MB, free: 22.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.003e-05/0.3973, allocations: 58.02 kB / 462.8 MB, free: 22.09 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.0006155/0.3979, allocations: 369.1 kB / 463.1 MB, free: 21.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002086/0.3982, allocations: 75.02 kB / 463.2 MB, free: 21.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002524/0.4007, allocations: 1.272 MB / 464.5 MB, free: 21.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.4007, allocations: 13.75 kB / 464.5 MB, free: 21.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.4007, allocations: 1.438 kB / 464.5 MB, free: 21.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.4008, allocations: 6.703 kB / 464.5 MB, free: 21.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006189/0.4069, allocations: 2.574 MB / 467.1 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.407, allocations: 3.062 kB / 467.1 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005578/0.4075, allocations: 141.6 kB / 467.2 MB, free: 20.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007322/0.4083, allocations: 340 kB / 467.5 MB, free: 19.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.919e-05/0.4084, allocations: 38.25 kB / 467.6 MB, free: 19.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00111/0.4095, allocations: 0.8963 MB / 468.5 MB, free: 19.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.4095, allocations: 3.938 kB / 468.5 MB, free: 19.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005493/0.415, allocations: 1.963 MB / 470.4 MB, free: 18.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003654/0.4154, allocations: 237.5 kB / 470.7 MB, free: 18.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001813/0.4156, allocations: 29.33 kB / 470.7 MB, free: 18.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007198/0.4163, allocations: 64.75 kB / 470.8 MB, free: 18.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.4165, allocations: 56.75 kB / 470.8 MB, free: 18.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-05/0.4165, allocations: 37.09 kB / 470.9 MB, free: 18.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005487/0.4171, allocations: 393 kB / 471.2 MB, free: 18.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4171, allocations: 0 / 471.2 MB, free: 18.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001127/0.4182, allocations: 343.9 kB / 471.6 MB, free: 17.93 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.0007449/0.419, allocations: 358 kB / 471.9 MB, free: 17.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002247/0.4213, allocations: 1.167 MB / 473.1 MB, free: 17.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.4213, allocations: 448 / 473.1 MB, free: 17.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.4223, allocations: 0.6599 MB / 473.8 MB, free: 16.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009729/0.4233, allocations: 139 kB / 473.9 MB, free: 16.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003585/0.4269, allocations: 2.348 MB / 476.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005959/0.4275, allocations: 1.014 MB / 477.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007806/0.4283, allocations: 124.8 kB / 477.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003405/0.4287, allocations: 84.34 kB / 477.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of SimCode: time 2.094e-06/0.4287, allocations: 0 / 477.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of Templates: time 0.0254/0.4541, allocations: 12.03 MB / 489.5 MB, free: 11.75 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: