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.02752/0.02752, allocations: 5.396 MB / 21.28 MB, free: 1.785 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.001011/0.001011, allocations: 114.4 kB / 23.27 MB, free: 80 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.001316/0.001316, allocations: 192.4 kB / 25.37 MB, free: 0.5664 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.377/1.377, allocations: 222.9 MB / 250.2 MB, free: 6.984 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008861/0.008861, allocations: 2.315 MB / 303.9 MB, free: 6.488 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001545, allocations: 91.84 kB / 367.3 MB, free: 7.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.225, allocations: 51.22 MB / 418.5 MB, free: 26.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704): time 0.006117/0.2312, allocations: 6.755 MB / 425.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004518/0.2358, allocations: 3.073 MB / 428.3 MB, free: 16.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009284/0.2367, allocations: 19.94 kB / 428.3 MB, free: 16.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00295/0.2398, allocations: 1.027 MB / 429.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002037/0.2418, allocations: 0.7572 MB / 430.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001523/0.2433, allocations: 496.1 kB / 430.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001397/0.2447, allocations: 1.379 MB / 432 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001207/0.246, allocations: 1.087 MB / 433.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005092/0.2465, allocations: 0.5605 MB / 433.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005631/0.2471, allocations: 0.7159 MB / 434.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001289/0.2472, allocations: 144 kB / 434.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007169/0.2479, allocations: 431.7 kB / 434.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.2481, allocations: 295 kB / 435.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003706/0.2484, allocations: 0.6376 MB / 435.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.2495, allocations: 1.341 MB / 437.2 MB, free: 7.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2495, allocations: 0 / 437.2 MB, free: 7.789 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2495, allocations: 0 / 437.2 MB, free: 7.789 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.2495, allocations: 0 / 437.2 MB, free: 7.789 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.00364/0.2532, allocations: 1.767 MB / 438.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.2532, allocations: 12.03 kB / 438.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001967/0.2552, allocations: 367.3 kB / 439.3 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.2566, allocations: 0.7639 MB / 440.1 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.519e-05/0.2567, allocations: 90.05 kB / 440.2 MB, free: 4.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001364/0.2569, allocations: 107.9 kB / 440.3 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001802/0.2587, allocations: 1.176 MB / 441.4 MB, free: 3.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.994e-05/0.2587, allocations: 3.984 kB / 441.4 MB, free: 3.336 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.495e-05/0.2588, allocations: 44 kB / 441.5 MB, free: 3.293 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.912e-05/0.2588, allocations: 24 kB / 441.5 MB, free: 3.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001815/0.2606, allocations: 1.034 MB / 442.5 MB, free: 2.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005647/0.2663, allocations: 4.404 MB / 446.9 MB, free: 13.63 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002896/0.2692, allocations: 1.778 MB / 448.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007729/0.27, allocations: 355.4 kB / 449.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001784/0.2702, allocations: 182.8 kB / 449.2 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009769/0.2712, allocations: 0.5475 MB / 449.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 4.579e-06/0.2712, allocations: 0 / 449.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006332/0.2776, allocations: 1.705 MB / 451.5 MB, free: 8.734 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001503/0.2778, allocations: 285.6 kB / 451.8 MB, free: 8.395 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008205/0.2786, allocations: 0.5497 MB / 452.3 MB, free: 7.836 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.235e-05/0.2787, allocations: 53.69 kB / 452.4 MB, free: 7.777 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003377/0.279, allocations: 486.7 kB / 452.9 MB, free: 7.293 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/0.2792, allocations: 260.4 kB / 453.1 MB, free: 7.035 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003157/0.2795, allocations: 206.7 kB / 453.3 MB, free: 6.824 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.2797, allocations: 382.8 kB / 453.7 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007316/0.2805, allocations: 330.4 kB / 454 MB, free: 6.121 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009003/0.2814, allocations: 0.5716 MB / 454.6 MB, free: 5.453 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.01843/0.2998, allocations: 3.631 MB / 458.2 MB, free: 1.656 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.2998, allocations: 0 / 458.2 MB, free: 1.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002577/0.3024, allocations: 1.209 MB / 459.4 MB, free: 424 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.123e-05/0.3025, allocations: 89.11 kB / 459.5 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.3025, allocations: 8.25 kB / 459.5 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004771/0.303, allocations: 88.78 kB / 459.6 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.3041, allocations: 255.7 kB / 459.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001546/0.3057, allocations: 1.585 MB / 461.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009685/0.3067, allocations: 119.1 kB / 461.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.677e-05/0.3068, allocations: 55.97 kB / 461.6 MB, free: 14.05 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.0005689/0.3074, allocations: 365.2 kB / 462 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.3075, allocations: 79.06 kB / 462 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002578/0.3101, allocations: 1.265 MB / 463.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.3101, allocations: 8 kB / 463.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3101, allocations: 0 / 463.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.3102, allocations: 3.984 kB / 463.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006521/0.3167, allocations: 2.555 MB / 465.9 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.3167, allocations: 0 / 465.9 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006457/0.3174, allocations: 135.8 kB / 466 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008339/0.3182, allocations: 326.3 kB / 466.3 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.3184, allocations: 35.97 kB / 466.4 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001335/0.3197, allocations: 0.8857 MB / 467.2 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.3197, allocations: 0 / 467.2 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00604/0.3258, allocations: 1.927 MB / 469.2 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004622/0.3263, allocations: 235.8 kB / 469.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.3264, allocations: 28 kB / 469.4 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006936/0.3271, allocations: 55.95 kB / 469.5 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.3273, allocations: 56.67 kB / 469.5 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.938e-05/0.3274, allocations: 39.95 kB / 469.6 MB, free: 5.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004951/0.3279, allocations: 394.8 kB / 470 MB, free: 5.449 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3279, allocations: 0 / 470 MB, free: 5.449 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001035/0.3289, allocations: 347 kB / 470.3 MB, free: 5.109 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.0007341/0.3296, allocations: 364.2 kB / 470.7 MB, free: 4.816 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002771/0.3324, allocations: 1.19 MB / 471.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3325, allocations: 0 / 471.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.3336, allocations: 0.6663 MB / 472.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000941/0.3345, allocations: 144.9 kB / 472.7 MB, free: 2.734 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003761/0.3383, allocations: 2.292 MB / 475 MB, free: 416 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006238/0.339, allocations: 1.011 MB / 476 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004029/0.3394, allocations: 99.38 kB / 476.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3394, allocations: 4 kB / 476.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of Templates: time 0.02137/0.3608, allocations: 17.18 MB / 493.2 MB, free: 14.1 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)