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.06042/0.06042, allocations: 5.393 MB / 21.56 MB, free: 1.574 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.001588/0.001588, allocations: 100.7 kB / 23.55 MB, free: 0.832 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.001943/0.001943, allocations: 200.6 kB / 25.67 MB, free: 4.891 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 222.9 MB / 250.5 MB, free: 8.547 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.0112/0.0112, allocations: 2.326 MB / 304.2 MB, free: 6.574 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 88.23 kB / 367.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2235, allocations: 51.21 MB / 419 MB, free: 26.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160629): time 0.00602/0.2295, allocations: 6.767 MB / 425.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004149/0.2337, allocations: 3.138 MB / 428.9 MB, free: 16.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005748/0.2343, allocations: 20 kB / 429 MB, free: 16.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002111/0.2364, allocations: 1.095 MB / 430.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001426/0.2379, allocations: 0.839 MB / 430.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.2391, allocations: 0.5436 MB / 431.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008831/0.24, allocations: 1.367 MB / 432.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.2411, allocations: 1.036 MB / 433.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004206/0.2415, allocations: 0.5566 MB / 434.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005927/0.2421, allocations: 0.7121 MB / 435.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001429/0.2423, allocations: 144 kB / 435.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006242/0.2429, allocations: 435.7 kB / 435.7 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.2431, allocations: 291 kB / 436 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003686/0.2435, allocations: 0.6376 MB / 436.6 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001168/0.2446, allocations: 1.725 MB / 438.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2446, allocations: 0 / 438.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2447, allocations: 0 / 438.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.2447, allocations: 0 / 438.3 MB, free: 7.059 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.003512/0.2482, allocations: 1.767 MB / 440.1 MB, free: 5.219 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.2482, allocations: 12.03 kB / 440.1 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00194/0.2502, allocations: 363.3 kB / 440.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001328/0.2515, allocations: 0.7639 MB / 441.2 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.979e-05/0.2516, allocations: 78.06 kB / 441.3 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.2517, allocations: 107.9 kB / 441.4 MB, free: 3.859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00168/0.2534, allocations: 1.183 MB / 442.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.622e-05/0.2534, allocations: 0 / 442.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.95e-05/0.2536, allocations: 44 kB / 442.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.937e-05/0.2536, allocations: 28 kB / 442.7 MB, free: 2.547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001851/0.2554, allocations: 1.034 MB / 443.7 MB, free: 1.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006051/0.2615, allocations: 4.396 MB / 448.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003201/0.2647, allocations: 1.784 MB / 449.9 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008239/0.2656, allocations: 370 kB / 450.2 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001535/0.2657, allocations: 170.8 kB / 450.4 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001036/0.2668, allocations: 0.5514 MB / 451 MB, free: 9.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.675e-06/0.2668, allocations: 3.938 kB / 451 MB, free: 9.762 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006332/0.2731, allocations: 1.698 MB / 452.7 MB, free: 8.016 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002273/0.2734, allocations: 285.6 kB / 452.9 MB, free: 7.676 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008028/0.2742, allocations: 0.5614 MB / 453.5 MB, free: 7.105 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.45e-05/0.2743, allocations: 37.7 kB / 453.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004688/0.2747, allocations: 490.6 kB / 454 MB, free: 6.574 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002976/0.275, allocations: 264.4 kB / 454.3 MB, free: 6.312 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003145/0.2754, allocations: 210.7 kB / 454.5 MB, free: 6.098 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.2755, allocations: 382.8 kB / 454.8 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007664/0.2763, allocations: 322.4 kB / 455.2 MB, free: 5.402 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001129/0.2774, allocations: 0.5682 MB / 455.7 MB, free: 4.738 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.01864/0.2961, allocations: 3.638 MB / 459.4 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.345e-05/0.2961, allocations: 4 kB / 459.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002806/0.2989, allocations: 1.209 MB / 460.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.927e-05/0.299, allocations: 91.77 kB / 460.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.2991, allocations: 11.98 kB / 460.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000488/0.2995, allocations: 85.05 kB / 460.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.3007, allocations: 259.5 kB / 461 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001537/0.3023, allocations: 1.578 MB / 462.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.3033, allocations: 115.1 kB / 462.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.324e-05/0.3034, allocations: 55.95 kB / 462.8 MB, free: 13.34 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.0005937/0.304, allocations: 365.2 kB / 463.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.3042, allocations: 83.09 kB / 463.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002811/0.307, allocations: 1.257 MB / 464.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.307, allocations: 8 kB / 464.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3071, allocations: 7.938 kB / 464.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.3071, allocations: 3.984 kB / 464.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006777/0.3139, allocations: 2.555 MB / 467 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.3139, allocations: 4 kB / 467 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006011/0.3145, allocations: 131.8 kB / 467.2 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009305/0.3154, allocations: 334.3 kB / 467.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.964e-05/0.3155, allocations: 31.97 kB / 467.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001642/0.3172, allocations: 0.8897 MB / 468.4 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3172, allocations: 0 / 468.4 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005907/0.3231, allocations: 1.927 MB / 470.3 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003981/0.3235, allocations: 239.7 kB / 470.6 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001583/0.3237, allocations: 28 kB / 470.6 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006781/0.3244, allocations: 43.97 kB / 470.6 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.3245, allocations: 60.58 kB / 470.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.042e-05/0.3246, allocations: 43.97 kB / 470.7 MB, free: 5.102 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005924/0.3252, allocations: 386.8 kB / 471.1 MB, free: 4.723 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3252, allocations: 0 / 471.1 MB, free: 4.723 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001054/0.3263, allocations: 347 kB / 471.5 MB, free: 4.383 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.0007072/0.327, allocations: 364.2 kB / 471.8 MB, free: 4.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002735/0.3298, allocations: 1.188 MB / 473 MB, free: 2.852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3298, allocations: 0 / 473 MB, free: 2.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.3309, allocations: 0.6714 MB / 473.7 MB, free: 2.141 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008051/0.3317, allocations: 142.1 kB / 473.8 MB, free: 2.004 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003333/0.335, allocations: 1.823 MB / 475.6 MB, free: 148 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005706/0.3356, allocations: 1.014 MB / 476.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002795/0.3359, allocations: 91.38 kB / 476.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3359, allocations: 3.938 kB / 476.7 MB, free: 15 MB / 350.1 MB Notification: Performance of Templates: time 0.02195/0.3579, allocations: 17.2 MB / 493.9 MB, free: 13.83 MB / 366.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)