Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.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_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03784/0.03784, allocations: 5.387 MB / 21.55 MB, free: 1.551 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.001527/0.001527, allocations: 110.5 kB / 23.55 MB, free: 0.8242 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.001749/0.001749, allocations: 203.3 kB / 25.68 MB, free: 4.883 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.412/1.412, allocations: 222.9 MB / 250.5 MB, free: 8.535 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009349/0.009349, allocations: 2.314 MB / 304.2 MB, free: 6.551 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 99.84 kB / 367.8 MB, free: 6.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.223, allocations: 51.21 MB / 419 MB, free: 26.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704): time 0.005999/0.229, allocations: 6.764 MB / 425.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004214/0.2332, allocations: 3.131 MB / 428.9 MB, free: 16.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007447/0.234, allocations: 19.94 kB / 429 MB, free: 16.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002267/0.2363, allocations: 1.103 MB / 430.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001877/0.2382, allocations: 0.8428 MB / 430.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001607/0.2398, allocations: 0.5435 MB / 431.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.2411, allocations: 1.367 MB / 432.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001159/0.2423, allocations: 1.04 MB / 433.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005278/0.2428, allocations: 0.5527 MB / 434.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006479/0.2435, allocations: 0.7082 MB / 435.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001558/0.2436, allocations: 144 kB / 435.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007544/0.2444, allocations: 439.7 kB / 435.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.2445, allocations: 291 kB / 436 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004358/0.245, allocations: 0.6337 MB / 436.6 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.2464, allocations: 1.717 MB / 438.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2464, allocations: 7.938 kB / 438.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2464, allocations: 0 / 438.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.899e-05/0.2464, allocations: 0 / 438.3 MB, free: 7.051 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.003875/0.2503, allocations: 1.771 MB / 440.1 MB, free: 5.207 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.2504, allocations: 8.031 kB / 440.1 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002073/0.2524, allocations: 371.2 kB / 440.5 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001508/0.254, allocations: 0.7522 MB / 441.2 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.923e-05/0.254, allocations: 86.06 kB / 441.3 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.2542, allocations: 107.9 kB / 441.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001867/0.2561, allocations: 1.176 MB / 442.6 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.057e-05/0.2561, allocations: 4 kB / 442.6 MB, free: 2.609 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/0.2562, allocations: 48 kB / 442.6 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.2562, allocations: 24 kB / 442.7 MB, free: 2.539 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.2582, allocations: 1.034 MB / 443.7 MB, free: 1.504 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006149/0.2643, allocations: 4.404 MB / 448.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003075/0.2674, allocations: 1.784 MB / 449.9 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008118/0.2683, allocations: 362 kB / 450.2 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00018/0.2685, allocations: 170.8 kB / 450.4 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001033/0.2695, allocations: 0.5552 MB / 451 MB, free: 9.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.494e-06/0.2695, allocations: 0 / 451 MB, free: 9.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006393/0.2759, allocations: 1.713 MB / 452.7 MB, free: 7.992 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/0.2761, allocations: 273.7 kB / 452.9 MB, free: 7.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007669/0.2769, allocations: 0.5575 MB / 453.5 MB, free: 7.098 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.388e-05/0.277, allocations: 41.7 kB / 453.5 MB, free: 7.051 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003761/0.2774, allocations: 490.6 kB / 454 MB, free: 6.562 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002198/0.2776, allocations: 260.4 kB / 454.3 MB, free: 6.305 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003472/0.2779, allocations: 206.7 kB / 454.5 MB, free: 6.094 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.2781, allocations: 386.8 kB / 454.8 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007977/0.2789, allocations: 322.4 kB / 455.2 MB, free: 5.395 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009492/0.2799, allocations: 0.5721 MB / 455.7 MB, free: 4.727 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.01846/0.2984, allocations: 3.638 MB / 459.4 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.2984, allocations: 0 / 459.4 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003759/0.3022, allocations: 1.213 MB / 460.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.968e-05/0.3023, allocations: 89.09 kB / 460.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.3023, allocations: 8 kB / 460.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005133/0.3028, allocations: 85.03 kB / 460.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.3041, allocations: 259.5 kB / 461 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001646/0.3057, allocations: 1.574 MB / 462.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.3069, allocations: 115 kB / 462.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.192e-05/0.307, allocations: 55.94 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.0005857/0.3076, allocations: 373.3 kB / 463.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.3078, allocations: 79.06 kB / 463.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00282/0.3106, allocations: 1.257 MB / 464.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.3106, allocations: 12 kB / 464.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3107, allocations: 4 kB / 464.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.3107, allocations: 3.984 kB / 464.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00684/0.3175, allocations: 2.555 MB / 467 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.3176, allocations: 4.031 kB / 467 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007565/0.3183, allocations: 135.8 kB / 467.2 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008562/0.3192, allocations: 322.3 kB / 467.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.169e-05/0.3193, allocations: 35.97 kB / 467.5 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001401/0.3207, allocations: 0.8896 MB / 468.4 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.3207, allocations: 3.984 kB / 468.4 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006602/0.3273, allocations: 1.923 MB / 470.3 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005287/0.3279, allocations: 235.8 kB / 470.6 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002243/0.3281, allocations: 32 kB / 470.6 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009594/0.3291, allocations: 47.97 kB / 470.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.3293, allocations: 60.56 kB / 470.7 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.3295, allocations: 39.97 kB / 470.7 MB, free: 5.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007227/0.3302, allocations: 390.8 kB / 471.1 MB, free: 4.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3302, allocations: 0 / 471.1 MB, free: 4.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001534/0.3317, allocations: 350.9 kB / 471.5 MB, free: 4.371 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.001064/0.3328, allocations: 350.2 kB / 471.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003978/0.3368, allocations: 1.192 MB / 473 MB, free: 2.852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.3368, allocations: 0 / 473 MB, free: 2.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001612/0.3385, allocations: 0.6673 MB / 473.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.3398, allocations: 146 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.004402/0.3442, allocations: 1.838 MB / 475.6 MB, free: 136 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005992/0.3448, allocations: 1.011 MB / 476.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003304/0.3452, allocations: 99.31 kB / 476.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of SimCode: time 9.71e-07/0.3452, allocations: 0 / 476.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of Templates: time 0.02526/0.3704, allocations: 17.19 MB / 493.9 MB, free: 13.83 MB / 366.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe 2>&1)