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.02615/0.02615, allocations: 5.385 MB / 20.51 MB, free: 2.109 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.0009278/0.0009278, allocations: 112.1 kB / 22.5 MB, free: 492 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.001102/0.001102, allocations: 192.1 kB / 24.59 MB, free: 0.7188 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.239/1.239, allocations: 222.9 MB / 249.4 MB, free: 7.012 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008633/0.008634, allocations: 2.303 MB / 303.1 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.001531/0.001531, allocations: 95.84 kB / 366.4 MB, free: 7.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2143, allocations: 51.21 MB / 417.6 MB, free: 26.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.005707/0.22, allocations: 6.747 MB / 424.4 MB, free: 19.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004339/0.2244, allocations: 3.119 MB / 427.5 MB, free: 16.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007431/0.2252, allocations: 23.94 kB / 427.5 MB, free: 16.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.2273, allocations: 1.031 MB / 428.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001595/0.2289, allocations: 0.7581 MB / 429.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.2303, allocations: 489.9 kB / 429.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.2313, allocations: 1.277 MB / 431.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001012/0.2324, allocations: 0.8785 MB / 431.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000468/0.2328, allocations: 0.4903 MB / 432.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005599/0.2334, allocations: 0.6691 MB / 433.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.2336, allocations: 88 kB / 433.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008001/0.2344, allocations: 371.6 kB / 433.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.2345, allocations: 239 kB / 433.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004368/0.235, allocations: 0.5751 MB / 434.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001301/0.2363, allocations: 1.671 MB / 436 MB, free: 8.137 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.2363, allocations: 0 / 436 MB, free: 8.137 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.2363, allocations: 0 / 436 MB, free: 8.137 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.954e-05/0.2363, allocations: 4 kB / 436 MB, free: 8.133 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.003834/0.2402, allocations: 1.771 MB / 437.8 MB, free: 6.289 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.2402, allocations: 8.031 kB / 437.8 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001954/0.2422, allocations: 371.3 kB / 438.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001519/0.2437, allocations: 0.7561 MB / 438.9 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.998e-05/0.2438, allocations: 82.06 kB / 439 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001426/0.2439, allocations: 111.9 kB / 439.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001852/0.2458, allocations: 1.175 MB / 440.3 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.08e-05/0.2458, allocations: 4 kB / 440.3 MB, free: 3.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.717e-05/0.2459, allocations: 44 kB / 440.3 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.067e-05/0.246, allocations: 28 kB / 440.4 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00187/0.2478, allocations: 1.045 MB / 441.4 MB, free: 2.578 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005708/0.2536, allocations: 4.396 MB / 445.8 MB, free: 13.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002819/0.2564, allocations: 1.78 MB / 447.6 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007454/0.2572, allocations: 361.2 kB / 447.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001602/0.2573, allocations: 178.7 kB / 448.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009673/0.2583, allocations: 0.5514 MB / 448.7 MB, free: 10.83 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.615e-06/0.2583, allocations: 0 / 448.7 MB, free: 10.83 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006108/0.2645, allocations: 1.709 MB / 450.4 MB, free: 9.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/0.2646, allocations: 281.7 kB / 450.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007167/0.2653, allocations: 0.5575 MB / 451.2 MB, free: 8.168 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.244e-05/0.2654, allocations: 41.7 kB / 451.3 MB, free: 8.121 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000343/0.2657, allocations: 486.7 kB / 451.7 MB, free: 7.637 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/0.2659, allocations: 260.4 kB / 452 MB, free: 7.379 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002914/0.2662, allocations: 210.7 kB / 452.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.2664, allocations: 378.8 kB / 452.6 MB, free: 6.785 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007268/0.2671, allocations: 330.4 kB / 452.9 MB, free: 6.465 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009266/0.2681, allocations: 0.5638 MB / 453.4 MB, free: 5.805 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.01788/0.2859, allocations: 3.627 MB / 457.1 MB, free: 2.008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/0.286, allocations: 4 kB / 457.1 MB, free: 2.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002537/0.2885, allocations: 1.213 MB / 458.3 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.933e-05/0.2886, allocations: 85.11 kB / 458.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.2886, allocations: 8 kB / 458.4 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004858/0.2891, allocations: 84.78 kB / 458.5 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.2902, allocations: 263.8 kB / 458.7 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.2917, allocations: 1.471 MB / 460.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009474/0.2926, allocations: 119.1 kB / 460.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.443e-05/0.2927, allocations: 55.95 kB / 460.4 MB, free: 14.53 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.0005998/0.2933, allocations: 361.2 kB / 460.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.2935, allocations: 79.06 kB / 460.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002423/0.2959, allocations: 1.265 MB / 462.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.537e-06/0.2959, allocations: 11.94 kB / 462.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.296, allocations: 0 / 462.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.296, allocations: 3.984 kB / 462.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00632/0.3023, allocations: 2.551 MB / 464.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.3023, allocations: 0 / 464.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005878/0.3029, allocations: 135.8 kB / 464.8 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007999/0.3037, allocations: 338.1 kB / 465.1 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.802e-05/0.3038, allocations: 35.95 kB / 465.1 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001269/0.3051, allocations: 0.8819 MB / 466 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3051, allocations: 4.094 kB / 466 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005801/0.3109, allocations: 1.923 MB / 467.9 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000411/0.3114, allocations: 239.8 kB / 468.2 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.3115, allocations: 28 kB / 468.2 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006569/0.3122, allocations: 51.89 kB / 468.2 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.3123, allocations: 60.58 kB / 468.3 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-05/0.3124, allocations: 35.97 kB / 468.3 MB, free: 6.297 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004856/0.3129, allocations: 394.8 kB / 468.7 MB, free: 5.914 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3129, allocations: 0 / 468.7 MB, free: 5.914 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001025/0.3139, allocations: 343 kB / 469.1 MB, free: 5.578 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.0006881/0.3146, allocations: 349.1 kB / 469.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002179/0.3168, allocations: 1.161 MB / 470.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.3168, allocations: 0 / 470.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.3179, allocations: 0.6597 MB / 471.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008313/0.3187, allocations: 138.2 kB / 471.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003231/0.3219, allocations: 2.265 MB / 473.6 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004778/0.3224, allocations: 1.015 MB / 474.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000546/0.323, allocations: 126.4 kB / 474.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000243/0.3232, allocations: 87.31 kB / 474.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3232, allocations: 0 / 474.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of Templates: time 0.01956/0.3428, allocations: 12.14 MB / 487 MB, free: 3.637 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.makefile (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)